Skip to content

Instantly share code, notes, and snippets.

@fortmarek
Last active October 11, 2018 14:00
Show Gist options
  • Save fortmarek/ebf761d7f43796ee4587bc89203c1340 to your computer and use it in GitHub Desktop.
Save fortmarek/ebf761d7f43796ee4587bc89203c1340 to your computer and use it in GitHub Desktop.
let testContractAddress = try! Address(describing: "0xb8f016F3529b198b4a06574f3E9BDc04948ad852")
query.helloContract(at: testContractAddress).testString(greetString: "Greetings!").send(using: key, amount: Wei(10)).startWithResult { result in
switch result {
case .success(let hash):
print(hash)
print("Test greetings succeeded!")
case .failure(let error):
print(error)
print("Test greetings failed.")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment