-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deposits: verify correct data processing in x/rollup
processL1UserDeposits()
#205
Comments
@AnkushinDaniil You mentioned you were working on this. I wasn't able to assign you, so I self-assigned to prevent someone else from picking up. Feel free to ping me on a review. |
I investigated this issue, identified some errors in the BackgroundThe Deposit txs contain The The optional Errors in current
|
I suspect (85% confidence) the unmarshal of deposit tx data in processL1UserDepositTxs is not recovering the data it actually wants.
Specifically:
monomer/x/rollup/keeper/deposits.go
Line 59 in cff062f
tx
is a vanilla Ethereum transaction. We access itsTo
andValue
fields and treat them as if they were the specified parameters of the deposit.monomer/x/rollup/keeper/deposits.go
Lines 73 to 79 in cff062f
monomer/x/rollup/keeper/deposits.go
Line 81 in cff062f
... but they are not. Here,
To
will be the address of the L1OptimismPortal contract.Value
will be the eth value of the depositing tx, which is distinct from the minting order of the deposit.Instead, we want the values from the encoded calldata of that tx.
The text was updated successfully, but these errors were encountered: