-1
transaction = SimpleStorage.constructor{}.buildTransaction(
    ("chainId": chain_id, "from": my_address, "nonce": nonce)
    )
print(transaction)
TylerH
  • 20,799
  • 66
  • 75
  • 101
  • 1
    You need to show the error (and read it, since it should tell you exactly what and where your error is) in your question, as well. – TylerH May 24 '22 at 14:27

1 Answers1

0

That's correct syntax for web3.py:

transaction = SimpleStorage.constructor().buildTransaction({
    'chainId': chain_id,
    'from': my_address,
    'nonce': nonce
})

However by using brownie you can manage, test and deploy smart contracts in more comfortable way than web3.py

kj-crypto
  • 483
  • 1
  • 7