Fixing StormBirdTransfer abi

pull/22/head
Oguzhan Gungor 7 years ago
parent 8682d5f915
commit 61284225f5
  1. 2
      Trust/Vendors/New Group/Commands/ContractStormBirdTransfer.swift

@ -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)
}

Loading…
Cancel
Save