Commit 0bd6ef25 authored by Adrian Sutton's avatar Adrian Sutton

op-chain-ops: Detect types using input.Type.T rather than string comparison

parent cd3713e3
...@@ -141,9 +141,8 @@ func createContractInput(input abi.Argument, inputs []ContractInput) ([]Contract ...@@ -141,9 +141,8 @@ func createContractInput(input abi.Argument, inputs []ContractInput) ([]Contract
return nil, err return nil, err
} }
// TODO: could probably do better than string comparison?
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