Giter Site home page Giter Site logo

Comments (7)

xlc avatar xlc commented on August 28, 2024

chopsticks 0.9.6 have a bug. can you try 0.9.7

from bodhi.js.

magecnion avatar magecnion commented on August 28, 2024

chopsticks 0.9.6 have a bug. can you try 0.9.7

it now works when running Chopsticks with Acala config, but when using another config (e.g. Moonbeam) it returns same error:
npx @acala-network/[email protected] -c moonbeam

{"id":2,"jsonrpc":"2.0","error":{"code":6969,"message":"Error: Cannot read properties of undefined (reading 'chainId')"}}

This is the log from eth-rpc-adapter

  ------------------------------------------
  ⚡️ running in production (standard) mode ⚡️
  ------------------------------------------

2024-01-23 11:06:41        API/INIT: RPC methods not decorated: dev_dryRun, dev_newBlock, dev_runBlock, dev_setBlockBuildMode, dev_setHead, dev_setRuntimeLogLevel, dev_setStorage, dev_timeTravel
2024-01-23 11:06:41        API/INIT: moonbeam/2602: Not decorating runtime apis without matching versions: EthereumRuntimeRPCApi/5 (4 known)
2024-01-23 11:06:41        API/INIT: moonbeam/2602: Not decorating unknown runtime apis: 0xa33d43f58731ad84/2, 0xba8173bf23b2e6f8/1
runtime version: 2602

  --------------------------------------------
               🚀 SERVER STARTED 🚀
  --------------------------------------------
  version         : bodhi.js/eth-rpc-adapter/2.7.19
  endpoint url    : ws://172.17.0.1:8000
  subquery url    : undefined
  listening to    : 8545
  max blockCache  : 200
  max batchSize   : 50  
  max storageSize : 5000
  safe mode       : false
  local mode      : false
  http only       : false
  verbose         : true
  --------------------------------------------
  
{"level":20,"time":1706008003904,"pid":1,"hostname":"58b9fe0eff14","dd":{"trace_id":"3236574543570937110","span_id":"5464029673351754121","service":"eth rpc","version":"2.7.19"},"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":2,"msg":"⬇ request"}
{"level":20,"time":1706008003906,"pid":1,"hostname":"58b9fe0eff14","dd":{"trace_id":"3236574543570937110","span_id":"5464029673351754121","service":"eth rpc","version":"2.7.19"},"id":2,"jsonrpc":"2.0","error":{"code":6969,"message":"Error: Cannot read properties of undefined (reading 'chainId')"},"msg":"✨ response"}
{"level":20,"time":1706008004660,"pid":1,"hostname":"58b9fe0eff14","dd":{"trace_id":"8934097509485400245","span_id":"4358609619567044265","service":"eth rpc","version":"2.7.19"},"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":2,"msg":"⬇ request"}
{"level":20,"time":1706008004661,"pid":1,"hostname":"58b9fe0eff14","dd":{"trace_id":"8934097509485400245","span_id":"4358609619567044265","service":"eth rpc","version":"2.7.19"},"id":2,"jsonrpc":"2.0","error":{"code":6969,"message":"Error: Cannot read properties of undefined (reading 'chainId')"},"msg":"✨ response"}
_onNewFinalizedHead task failed, give up 0xed3358ed2d68dbc6a1e5a7fc6ce5a39ab0eea65253cd21b0e706caa68ea83310 TypeError: Cannot read properties of undefined (reading 'evmAddresses')

from bodhi.js.

shunjizhan avatar shunjizhan commented on August 28, 2024

eth-rpc-adapter is meant to run with Acala node. Moonbeam node itself should already provide eth rpcs

from bodhi.js.

magecnion avatar magecnion commented on August 28, 2024

when I directly query the Chopsticks endpoint running Moonbeam it returns:

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"eth_chainId", "params":[], "id":2}' http://localhost:8000
Upgrade Required

and same for a custom chain that I'm running locally

from bodhi.js.

xlc avatar xlc commented on August 28, 2024

Moonbeam is not supported as our evm implementation are different

from bodhi.js.

Wevelll avatar Wevelll commented on August 28, 2024

Moonbeam is not supported as our evm implementation are different

Hitting same issue with Astar. It is not supported as well or am I missing on something?

from bodhi.js.

xlc avatar xlc commented on August 28, 2024

Only Acala is supposed

from bodhi.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.