omni / tokenbridge-contracts

Smart contracts for TokenBridge
http://docs.tokenbridge.net
GNU General Public License v3.0
228 stars 227 forks source link

Error: web3 RPC failed: {"code":-32000,"message":"execution reverted"} when deploying Foreign Bridge #655

Open schobo opened 2 years ago

schobo commented 2 years ago

Hi I am deploying Tokenbridge contracts with ERC_TO_NATIVE mode from ropsten (Foreign) to my private blockchain (Home) but got this error. Deploying HomeBridge is successful but ForeignBridge always got this error.

Error: web3 RPC failed: {"code":-32000,"message":"execution reverted"} at sendNodeRequest (/opt/tokenbridge/contracts/deploy/src/deploymentUtils.js:161:9) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async sendRawTx (/opt/tokenbridge/contracts/deploy/src/deploymentUtils.js:102:36) at async initializeBridge (/opt/tokenbridge/contracts/deploy/src/erc_to_native/foreign.js:72:30) at async deployForeign (/opt/tokenbridge/contracts/deploy/src/erc_to_native/foreign.js:176:3) at async deployErcToNative (/opt/tokenbridge/contracts/deploy/deploy.js:20:29) at async main (/opt/tokenbridge/contracts/deploy/deploy.js:87:7) Error: TypeError: Cannot read property 'status' of undefined at initializeBridge (/opt/tokenbridge/contracts/deploy/src/erc_to_native/foreign.js:79:26) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async deployForeign (/opt/tokenbridge/contracts/deploy/src/erc_to_native/foreign.js:176:3) at async deployErcToNative (/opt/tokenbridge/contracts/deploy/deploy.js:20:29) at async main (/opt/tokenbridge/contracts/deploy/deploy.js:87:7) I searched on google but I can't find anything relate to this error. Could you please help? If you need any other information please let me know.

Thank you.

eightbox commented 1 year ago

Hello, I have same a problem, How to fix?

NicoDFS commented 1 year ago

The fork seems to fix the issues https://github.com/yenchihliao/tokenbridge-contracts