Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc error: code = Unknown desc = execution reverted #39

Closed
browngres opened this issue Jul 28, 2024 · 2 comments
Closed

rpc error: code = Unknown desc = execution reverted #39

browngres opened this issue Jul 28, 2024 · 2 comments

Comments

@browngres
Copy link

FATA[2024-07-28T12:41:30+08:00] Failed to upload file
error="Failed to submit log entry: Failed to send transaction to append log entry: rpc error: code = Unknown desc = execution reverted"

Through debugging, it was found that the error came from the estimateGasLimit request, which is called when sending log entry transaction.
Located in this file
github.com/ethereum/[email protected]/accounts/abi/bind/base.go

This error occurred while executing into this area:

func (c *BoundContract) estimateGasLimit(opts *TransactOpts, contract *common.Address, input []byte, gasPrice, gasTipCap, gasFeeCap, value *big.Int) (uint64, error) {
	if contract != nil {
		// Gas estimation cannot succeed without code for method invocations.
		if code, err := c.transactor.PendingCodeAt(ensureContext(opts.Context), c.address); err != nil {
			return 0, err
		} else if len(code) == 0 {
			return 0, ErrNoCode
		}
	}
@MiniFrenchBread
Copy link
Contributor

The recent update to the testnet contract has introduced the storage fee, and this error might be caused by the SDK not correctly calculating the fee. An incoming PR #40 will resolve this.

@browngres
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants