You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a. Create a common function in our Rust tests which abstracts the three steps described above.
b. Add a new method to L1L2.sol without the require on balance; could have one of the following names:
mockDeposit
forceDeposit
c. Add a new example contract with the method described in b.
The text was updated successfully, but these errors were encountered:
Hola. I'm Tobias and I would love to take over this particular issue. I am quite new to the space but I have already contributed to some projects and recently learned Cairo and Rust
Problem
To test L1->L2 messages coming from Anvil, our L1L2 example contract (defined in
L1L2.sol
, compiled inL1L2Example.json
), we must:Deposit cannot be called right away because there is a constraint in the code which otherwise leads to reversion:
https://github.com/0xSpaceShard/starknet-devnet-rs/blob/eb8d800347365bc53825fd49eaaf6bef2a2476f3/contracts/l1-l2-messaging/solidity/src/L1L2.sol#L62
Proposal
One of the following can be done:
a. Create a common function in our Rust tests which abstracts the three steps described above.
b. Add a new method to
L1L2.sol
without therequire
on balance; could have one of the following names:mockDeposit
forceDeposit
c. Add a new example contract with the method described in b.
The text was updated successfully, but these errors were encountered: