Skip to content

Commit

Permalink
Merge pull request #113 from input-output-hk/docs/add-fees-to-wallet-…
Browse files Browse the repository at this point in the history
…example

docs(wallet): add comment to highlight fees being a function of the tx body
  • Loading branch information
rhyslbw authored Oct 11, 2021
2 parents d7909a3 + 4d1aee2 commit 80bd495
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 80bd495

Please sign in to comment.