Near-One / rainbow-bridge

🌈🌈🌈 NEAR <> Ethereum Decentralized Bridge
GNU General Public License v3.0
327 stars 99 forks source link

Near2Eth Relayer Error: Transaction has been reverted by the EVM #594

Closed idirall22 closed 2 years ago

idirall22 commented 3 years ago

When I run the bridge locally there is an issue with the Near2Ether relayer that keeps restarting and return this error: Error: Transaction has been reverted by the EVM a b c

I investigated inside the code and it looks like this this initWithValidators is the source of the error.

mfornet commented 3 years ago

Interesting. It seems to be initWithValidators, but if that is the case logs are out of order (this may happen due to async nature of this code). Can you describe how are you initialising the bridge?

idirall22 commented 3 years ago

I followed the instruction inside the README

mfornet commented 3 years ago

@idirall22 did you manage to fix this issue. I can't reproduce it locally.

idirall22 commented 3 years ago

Hey @mfornet No I did not investigate it, but I run the same commands above one after one but still get the same error. If I have some time I'll investigate more.

idirall22 commented 2 years ago

The issue is with the near2eth relayer which inits the BridgeContract on eth with an empty object. We fixed this issue on the BSC branch https://github.com/aurora-is-near/rainbow-bridge/blob/bsc/near2eth/near2eth-block-relay/index.js#L73