Skip to content

Commit 5aba496

Browse files
committed
docs: add migration notes on getGasPrice
1 parent 72c2182 commit 5aba496

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs.wrm/migrating.wrm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,21 @@ _code: Create a Provider on a static network @lang<script>
249249
staticNetwork: true
250250
});
251251

252+
_null:
253+
254+
Since the fees for Ethereum chains has become more complicated,
255+
all Fee parameters in v6 were coalesced into a single `.getFeeData`
256+
method. While `gasPrice` is no longer widely used in modern networks,
257+
when using a legacy network, it is available using that method.
258+
259+
_code: Getting legacy gas price @lang<script>
260+
// v5
261+
await provider.getGasPrice()
262+
263+
// v6
264+
(await provider.getFeeData()).gasPrice
265+
266+
252267
_subsection: Signatures @<migrate-signatures>
253268

254269
The Signature is now a class which facilitates all the parsing

0 commit comments

Comments
 (0)