aurora-is-near / aurora-relayer

[DEPRECATED] Web3-compatible relayer server for Aurora.
https://aurora-is-near.github.io/aurora-relayer/
Creative Commons Zero v1.0 Universal
26 stars 13 forks source link

Error: wasm execution failed with error: FunctionCallError(HostError(GasLimitExceeded)) #281

Closed libkakashi closed 1 year ago

libkakashi commented 2 years ago

Hey, is there a way we can configure the near node to allow higher gas limits than whatever's default?

Calls like contract.methods.someBigMethod.call({ gas: 1e18 }) currently throw a wasm execution failed with error: FunctionCallError(HostError(GasLimitExceeded)) error and there's apparently no way around it.

Full error log:

Error: Returned error: Internal Error - Querying [object Object] failed: wasm execution failed with error: FunctionCallError(HostError(GasLimitExceeded)).
{
  "block_hash": "9pTg5KQVELmNo2ZArq8GhHjTFmzKEMiWkSPLvBtzmYQz",
  "block_height": 65175732,
  "error": "wasm execution failed with error: FunctionCallError(HostError(GasLimitExceeded))",
  "logs": []
}. Please report a bug at <https://github.com/aurora-is-near/aurora-relayer/issues>
    at Object.ErrorResponse (errors.js?d2dd:28:1)
    at eval (index.js?b20e:300:1)
    at XMLHttpRequest.request.onreadystatechange (index.js?b231:98:1)
aguirrel commented 2 years ago

It's happening the same to me. Did you make it work?

spilin commented 2 years ago

@apoorvsingal , @aguirrel Thank you for submitting this. Can you please provide example of a contract so we can reproduce this.

libkakashi commented 2 years ago

https://docs.rari.capital/fuse/#get-pools-by-account-with-data This is one, it takes more gas than what aurora relayer allows (given the pools and assets count are high enough)

vanpt1114 commented 2 years ago

After setting up my own self-hosted Aurora node (VM on cloud), I faced the same issue as above, but when I utilized public RPC, that error did not show up. Is there any further step that needs to be configured?

spilin commented 1 year ago

This repository is deprecated. If issue still persists, please reopen it on a new repository of Aurora Relayer v2.