Skip to content

Commit

Permalink
docs(wallet): add comment to highlight fees being a function of the t…
Browse files Browse the repository at this point in the history
…x body
  • Loading branch information
rhyslbw committed Oct 11, 2021
1 parent d7909a3 commit 4d1aee2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ async () => {
withdrawals: [Transaction.withdrawal(csl, keyManager, 5_000_000n)],
...
});

// Calculated fee is returned by invoking body.fee()

const tx = await wallet.signTx(body, hash);

await wallet.submitTx(tx);
Expand Down

0 comments on commit 4d1aee2

Please sign in to comment.