optimism icon indicating copy to clipboard operation
optimism copied to clipboard

call the withdrawTo function in bridge smart contract

Open JhinQaQ opened this issue 2 years ago • 5 comments

Hi, I run a local Optimism node on my machine and send some transactions there.

I deploy those smart contracts 截屏2023-01-05 下午5 12 09

When I call the function withdrawTo/depositTo, this error occurs:

Error: Transaction reverted without a reason string. 2023-01-05 3 09 59

Only the donate function works on my machine. Any help will be much appreciated.

JhinQaQ avatar Jan 05 '23 22:01 JhinQaQ

Try deploying the contracts using hardhat deploy - otherwise there is no guarantee they are deployed correctly

tynes avatar Jan 06 '23 02:01 tynes

Thanks for your help! I try to use hardhat, but it said the argument for ovmSequencerAddess is not provided. 截屏2023-01-06 下午3 59 31 I already create a deploy-config folder and a local.ts in it. 截屏2023-01-06 下午4 00 00

JhinQaQ avatar Jan 06 '23 21:01 JhinQaQ

Besides, I just want to use the bridge contracts directly in my local chain. I noticed that layer 2's standard bridge is already pre deploy there but didn't see the l1 standard bridge. Can you give me some advice?

JhinQaQ avatar Jan 06 '23 21:01 JhinQaQ

I recommend using the bedrock contracts as the legacy contracts are no longer maintained

tynes avatar Jan 11 '23 16:01 tynes