docs: added provider updates to migration (#3844)

This commit is contained in:
Richard Moore 2023-03-13 01:16:41 -04:00
parent 8a02029c00
commit 7eaf3c4e8b

@ -214,6 +214,16 @@ _code: wrapping EIP-1193 providers @lang<script>
// v6: // v6:
provider = new ethers.BrowserProvider(window.ethereum) provider = new ethers.BrowserProvider(window.ethereum)
Also, the method for braodcasting transactions to the network has
changed:
_code: broadcasting transactions @lang<script>
// v5
provider.sendTransaction(signedTx)
// v6
provider.broadcastTransaction(signedTx)
_subsection: Signatures @<migrate-signatures> _subsection: Signatures @<migrate-signatures>
@ -236,7 +246,7 @@ The transaction helpers present in v5 were all wrapped into a
[[Transaction]] class, which can handle any supported transaction [[Transaction]] class, which can handle any supported transaction
format to be further processed format to be further processed
_code: parasing transactions @lang<script> _code: parsing transactions @lang<script>
// v5 // v5
tx = parseTransaction(txBytes) tx = parseTransaction(txBytes)