Commit a13573d6 authored by Hamdi Allam's avatar Hamdi Allam

use mint field of portal deposit tx

parent 11642bea
......@@ -95,7 +95,11 @@ CREATE TABLE IF NOT EXISTS l1_transaction_deposits (
-- transaction data
from_address VARCHAR NOT NULL,
to_address VARCHAR NOT NULL,
-- This refers to the amount MINTED on L2 (msg.value of the L1 transaction). Important distinction from
-- the `value` field of the deposit transaction which simply is the value transferred to specified recipient.
amount UINT256 NOT NULL,
gas_limit UINT256 NOT NULL,
data VARCHAR NOT NULL,
timestamp INTEGER NOT NULL CHECK (timestamp > 0)
......
......@@ -71,7 +71,7 @@ func OptimismPortalTransactionDepositEvents(contractAddress common.Address, db *
Tx: database.Transaction{
FromAddress: txDeposit.From,
ToAddress: txDeposit.To,
Amount: depositTx.Value,
Amount: depositTx.Mint,
Data: depositTx.Data,
Timestamp: transactionDepositEvents[i].Timestamp,
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment