umbracle/ethgo

Transaction Params (nonce, gasprice, etc)

Closed this issue · 10 comments

Wondering how to define basic tx data on contract calls.

At the moment can only send the function params but failing due to low nonce (obvious)

Hi, are you talking about abigen generated contracts or the contract package?

contract

You are correct, there exists a TxnOpts parameter but it is not exposed at the Txn() level. I will change the API to make it available.

Thanks ! So this means I am the first person trying to send a contract transaction? Or are there alternative most efficient ways like “populate transaction” and then send a regular transaction with the arguments and on that its already possible to define nonce

I have found an extra problem, the provider for the contract here provider for the contract (which is the default one) does not populate the nonce and it should.

This contract object is new (one month) and it still needs a bit more cleaning to find the rough edges. Thank you for helping!

Yeah I just seen a Go lang video and went straight forward to this library to learn, as my go playground.
Sorry I am unable to help further

I have found an extra problem, the provider for the contract here provider for the contract (which is the default one) does not populate the nonce and it should.

This contract object is new (one month) and it still needs a bit more cleaning to find the rough edges. Thank you for helping!

In the meantime, is there any alternative approach to for example populate contract call transaction, and then send with regular tx, via signer and correct nonce? Thanks

Yes, you could do what contract (here) package does internally and fill in the nonce.

Yes, you could do what contract (here) package does internally and fill in the nonce.

apparently my go app is importing branch 0.1.0 from the go.dev packages repo. The reference you mentioned is only available in master. Will try to download from github..

Indeed, that was the first change of the new release. I think I will have time to address this issue this week. I am travelling this weekend.