statechannels / SCBridge-Wallet

MIT License
1 stars 2 forks source link

Add counterfactual deployment test case #115

Closed lalexgap closed 11 months ago

lalexgap commented 11 months ago

⚠️ Based on #110 This adds a test case to test the Entrypoint contract deploying our SCBridgeWallet on demand using our contract factory. Instead of deploying the SCBridgeWallet before submitting the UserOperation, the test specifies the initcode which points to our factory. When the EntryPoint receives the UserOperation it checks the precomputed address and deploys the SCBridgeWallet for us.

TODO:

lalexgap commented 11 months ago

Hmm, I thought I had this working but it looks like the test is still failing.

lalexgap commented 11 months ago

Hmm, I thought I had this working but it looks like the test is still failing.

Ah, it looks like I accidentally deleted a line when adding a helper, it has now been resolved.

NiloCK commented 11 months ago

Really great - thanks @lalexgap.