Skip to content

Commit

Permalink
docs: add migration notes on getGasPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 20, 2024
1 parent 72c2182 commit 5aba496
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs.wrm/migrating.wrm
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,21 @@ _code: Create a Provider on a static network @lang<script>
staticNetwork: true
});

_null:

Since the fees for Ethereum chains has become more complicated,
all Fee parameters in v6 were coalesced into a single `.getFeeData`
method. While `gasPrice` is no longer widely used in modern networks,
when using a legacy network, it is available using that method.

_code: Getting legacy gas price @lang<script>
// v5
await provider.getGasPrice()

// v6
(await provider.getFeeData()).gasPrice


_subsection: Signatures @<migrate-signatures>

The Signature is now a class which facilitates all the parsing
Expand Down

1 comment on commit 5aba496

@ricmoo
Copy link
Member Author

@ricmoo ricmoo commented on 5aba496 Aug 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addresses #4808.

Please sign in to comment.