|
|
|
@ -7,7 +7,7 @@ struct ContractStormBirdTransfer: Web3Request { |
|
|
|
|
let indices: [UInt16] |
|
|
|
|
|
|
|
|
|
var type: Web3RequestType { |
|
|
|
|
let abi = "{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"ticketIndices\",\"type\":\"int16[]\"}],\"name\":\"transfer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"} , [\"\(address)\", \"\(indices)\"])" |
|
|
|
|
let abi = "{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"ticketIndices\",\"type\":\"uint16[]\"}],\"name\":\"transfer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"} , [\"\(address)\", \(indices)]" |
|
|
|
|
let run = "web3.eth.abi.encodeFunctionCall(" + abi + ")" |
|
|
|
|
return .script(command: run) |
|
|
|
|
} |
|
|
|
|