Commit 990c5cd6 authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #7070 from ethereum-optimism/aj/better-type-check

op-chain-ops: Detect types using input.Type.T rather than string comparison
parents 57bf998b 3914cf13
...@@ -142,7 +142,7 @@ func createContractInput(input abi.Argument, inputs []ContractInput) ([]Contract ...@@ -142,7 +142,7 @@ func createContractInput(input abi.Argument, inputs []ContractInput) ([]Contract
} }
internalType := input.Type.String() internalType := input.Type.String()
if inputType == "tuple" { if input.Type.T == abi.TupleTy {
internalType = input.Type.TupleRawName internalType = input.Type.TupleRawName
} }
......
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