statechannels / SCBridge-Wallet

MIT License
1 stars 2 forks source link

Get L1 payment flow working #110

Closed lalexgap closed 11 months ago

lalexgap commented 11 months ago

Completes #92

⚠️ This changes deployment behaviour. You now need to run yarn deploy:local to manually deploy the contracts after starting hardhat with yarn chain:local . Previously contracts would get auto-deployed when running yarn chain:local ⚠️

This makes a couple of changes to get the L1 payment flow working. The biggest change was changing our deploy script to not use hardhat-deloy and just use the same logic we use in our contract test. For some reason the contracts deployed via hardhat-deploy were not interacting correctly with the clients. Using the test deployment functions still result in deterministic addresses (as long as the solidity doesn't change) but also don't seem to cause issues when our clients connect to them.

There are also a couple of minor changes to some UserOperation fields (specifying the correct sender, adding some gas limits, removing excess calldata) to get things working based on the existing test.

There are also some minor tweaks to the UI (and some hardcoded values) to use a balance of 5 ETH / 5 ETH instead of 5 wei / 5 wei and display formatted eth values in the UI.

TODO