我正在觀看 freeCodeCamp.org、Solidity、區塊鏈和智能合約課程的教程——從初學者到專家 Python 教程(
在您的代碼中相應地更改值。
還將創建事務代碼更改為此
transaction = SimpleStorage.constructor().buildTransaction(
{
"chainId": chain_id,
"gasPrice": w3.eth.gas_price,
"from": my_address,
"nonce": nonce,
}
)
執行這兩個步驟應該可以解決您的問題。我只是為自己做的。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/415929.html
標籤:
上一篇:比較兩個Ansys機械模型樹
