OffchainLabs / arbitrum-tutorials

Get started developing on Arbitrum
459 stars 283 forks source link

How to run on local dev network? #86

Open s7v7nislands opened 1 year ago

s7v7nislands commented 1 year ago

after using test-node.bash in nitro repo, create a local test env

ArbSdkError: Unrecognized network 412346. at getNetwork (/Users/user/source/git/arbitrum-tutorials/node_modules/@arbitrum/sdk/dist/lib/dataEntities/networks.js:236:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at main (/Users/user/source/git/arbitrum-tutorials/packages/eth-deposit/scripts/exec.js:36:21) { inner: undefined }

it seems the arbitrum-sdk only support hardcode network?

s7v7nislands commented 1 year ago

I find the solution: addCustomNetwork. use the localNetwork.json from after run test-node.bash. should we add this tip to the readme?

DZGoldman commented 1 year ago

should we add this tip to the readme?

Yes, that's be great! ty