File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
advanced/wallets/react-wallet-v2/src/components Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -68,22 +68,15 @@ export default function MultibridgeRequestModal({
68
68
const chainProvider = new providers . JsonRpcProvider ( EIP155_CHAINS [ chainId as TEIP155Chain ] . rpc )
69
69
const chainConnectedWallet = await wallet . connect ( chainProvider )
70
70
const walletAddress = wallet . getAddress ( )
71
- const gasPrice = await chainProvider . getGasPrice ( )
72
- const gasEstimate = await chainProvider . estimateGas ( {
73
- from : walletAddress ,
74
- to : transaction . to ,
75
- value : transaction . value ,
76
- data : transaction . data ,
77
- gasPrice : gasPrice
78
- } )
79
71
80
72
const hash = await chainConnectedWallet . sendTransaction ( {
81
73
from : walletAddress ,
82
74
to : transaction . to ,
83
75
value : transaction . value ,
84
76
data : transaction . data ,
85
- gasPrice : gasPrice ,
86
- gasLimit : gasEstimate
77
+ nonce :transaction . nonce ,
78
+ gasPrice : transaction . gasPrice ,
79
+ gasLimit : transaction . gas
87
80
} )
88
81
const receipt = typeof hash === 'string' ? hash : hash ?. hash
89
82
console . log ( `Transaction broadcasted on chain ${ chainId } , ${ { receipt } } ` )
You can’t perform that action at this time.
0 commit comments