airnode: Gas estimation failure on Dusty Network

Description

The airnode successfuly deployed on AWS, smart contracts also deployed but AWS instance of airnode returns error logs:

  | Error: processing response  error  (body="{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32603,\"message\":\"evm  error: OutOfFund\",\"data\":\"0x\"},\"id\":45}\n",  error={"code":-32603,"data":"0x"},  requestBody="{\"method\":\"eth_estimateGas\",\"params\":[{\"gas\":\"0x493e0\",\"value\":\"0x1\",\"from\":\"0xf95baad2ca8813aedbf6b844726005c9db8bd34d\",\"to\":\"0x47549eea82133fdff415f0448b4ee593749dc08b\",\"data\":\"0xef03808c0000000000000000000000008ea4bbcfbccd68a12d0d7b1b0d259b302689548d0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006f787075623636314d794d774171526263456e426f4d58634a5978426f3556316672687a4b79526e5074465239576656364b3762374766427a326d6e314e71625869565937786752523277354d5a515832775865796a656e3143795276623873436e5068445a5a4337474679614439670000000000000000000000000000000000\"}],\"id\":45,\"jsonrpc\":\"2.0\"}",  requestMethod="POST", url="https://rpc.dusty.plasmnet.io:8545",  code=SERVER_ERROR, version=web/5.0.11)    at  Logger.makeError  (/var/task/_optimize/airnode-13611c6-starter-example-initializeProvider/src/handlers/aws/index.js:7067:21)     at Logger.throwError  (/var/task/_optimize/airnode-13611c6-starter-example-initializeProvider/src/handlers/aws/index.js:7076:20)    at /var/task/_optimize/airnode-13611c6-starter-example-initializeProvider/src/handlers/aws/index.js:14745:32    at step (/var/task/_optimize/airnode-13611c6-starter-example-initializeProvider/src/handlers/aws/index.js:14513:23)    at Object.next (/var/task/_optimize/airnode-13611c6-starter-example-initializeProvider/src/handlers/aws/index.js:14494:53)    at fulfilled (/var/task/_optimize/airnode-13611c6-starter-example-initializeProvider/src/handlers/aws/index.js:14485:58)    at processTicksAndRejections (internal/process/task_queues.js:97:5)
-- | --

looks like the final initialization fails. Is it any way to miss gas_estimation call here? Probably it’s a bug on frontier side.

Version

Pre-alpha branch.

Present Behaviour

Node has a balance on the account but couldn’t create provider record in the smart contract.

Expected Behaviour

Node should initialize provider and set a record in the smart contract.

Steps to reproduce

use https://rpc.dusty.plasmnet.io:8545 endpoint and 80 chain id for airnode deployment.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

I have made a successful request by using @Siegrift repo to create the provider, then adjusting the logs searched to only 50 blocks. You will also probably find that you have to fetch transaction count for current block -1 due to a lag with ethers on updating the block number and airnode calls it from the chain. I will post a repo that does this I think because it was the same on moonbeam and they said it could be due to polkadot consensus.