error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":3,"message":"Failed to serialize transaction: toAddressIsNull"}}}'","id":705276879329472}
Apr 6, 2023, 3:01 PM
I get this error
Would appreciate😊🙏
Apr 6, 2023, 3:02 PM
something wrong in how you're building the transaction
if you use ethers, the {to: } is automatically set by the signer.getAddress()
otherwise, you're setting a wrong address to the "to" value
if you use ethers, the {to: } is automatically set by the signer.getAddress()
otherwise, you're setting a wrong address to the "to" value
if you're not doing something specific, you don't have to define it
just use .connect() on the contract object with the correct signer
Apr 6, 2023, 4:02 PM
Ok, tnx
Apr 6, 2023, 4:07 PM