-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
感谢大佬的详细文章,修正一点,ABI 的参数可以通过 depositETH 这个方法在js文件中 搜方法,然后对于 EIP 1559 请求构建参数的时候 只需要在原有的参数 里面加个 type 类型即可, 值固定是0x2 ,参考
params = {
'gas': 250000,
'nonce': web3_instance.eth.getTransactionCount(web3_instance.toChecksumAddress(from_address)),
'from': web3_instance.toChecksumAddress(from_address),
'value': web3_instance.toWei(l1_amount, "ether"),
# 'gasPrice': w3.toWei('5', 'gwei'),
'maxFeePerGas': web3_instance.toWei(5, 'gwei'),
'maxPriorityFeePerGas': web3_instance.toWei(5, 'gwei'),
'chainId': 5,
"type": "0x2",
}
Metadata
Metadata
Assignees
Labels
No labels