Skip to content

Commit

Permalink
feat!: support static gas price setting in NodeConfig (#1396)
Browse files Browse the repository at this point in the history
Adds the static gas price config parameter to the node config and sets a non 0 gas price in our tests.

BREAKING CHANGE: Adds the field `static_gas_price` to `NodeConfig`
  • Loading branch information
MujkicA authored Jun 20, 2024
1 parent de3a3f9 commit 3598af1
Show file tree
Hide file tree
Showing 12 changed files with 190 additions and 199 deletions.
2 changes: 1 addition & 1 deletion docs/src/cookbook/transfer-all-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ We prepare two wallets with randomized addresses. Next, we want one of our walle

Transactions require us to define input and output coins. Let's assume we do not know the assets owned by `wallet_1`. We retrieve its balances, i.e. tuples consisting of a string representing the asset ID and the respective amount. This lets us use the helpers `get_asset_inputs_for_amount()`, `get_asset_outputs_for_amount()` to create the appropriate inputs and outputs.

For the sake of simplicity, we avoid transferring the base asset so we don't have to worry about transaction fees:
We transfer only a part of the base asset balance so that the rest can cover transaction fees:

```rust,ignore
{{#include ../../../examples/cookbook/src/lib.rs:transfer_multiple_input}}
Expand Down
Loading

0 comments on commit 3598af1

Please sign in to comment.