diff --git a/.gitignore b/.gitignore index 4ada13e..ab7c306 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,7 @@ tmp *.exe~ *.dll *.so -*.dylib \ No newline at end of file +*.dylib + +# Validation config +configs/* \ No newline at end of file diff --git a/pkg/client/client_ops.go b/pkg/client/client_ops.go index 375b04d..3ca5e14 100644 --- a/pkg/client/client_ops.go +++ b/pkg/client/client_ops.go @@ -17,7 +17,7 @@ func (c *OpClient) ParseOps( ) ([]*RosettaTypes.Operation, error) { var ops []*RosettaTypes.Operation - if tx.Receipt.Type == L1ToL2DepositType && len(tx.Trace) > 0 && tx.Transaction.IsSystemTx() { + if tx.Receipt.Type == L1ToL2DepositType && len(tx.Trace) > 0 { call := tx.Trace[0] fromAddress := evmClient.MustChecksum(call.From.String()) toAddress := evmClient.MustChecksum(call.To.String()) @@ -46,8 +46,8 @@ func (c *OpClient) ParseOps( } ops = append(ops, feeOps...) - ops = append(ops, handlers.MintOps(tx, len(ops))...) - ops = append(ops, handlers.BurnOps(tx, len(ops))...) + // ops = append(ops, handlers.MintOps(tx, len(ops))...) + // ops = append(ops, handlers.BurnOps(tx, len(ops))...) ops = append(ops, handlers.TraceOps(tx.Trace, len(ops))...) return ops, nil diff --git a/pkg/handlers/burn.go b/pkg/handlers/burn.go index 3597e23..7cc5014 100644 --- a/pkg/handlers/burn.go +++ b/pkg/handlers/burn.go @@ -9,6 +9,7 @@ import ( // BurnOps constructs a list of [RosettaTypes.Operation]s for an Optimism Withdrawal or "burn" transaction. func BurnOps(tx *evmClient.LoadedTransaction, startIndex int) []*RosettaTypes.Operation { + // tx's To address could be nil, if the type == CREATE, it will break if *tx.Transaction.To() != common.L2ToL1MessagePasser { return nil }