This commit is contained in:
Alex T 2018-11-06 10:47:17 +02:00
parent 5a59cc0eea
commit 212b107860
2 changed files with 12 additions and 14 deletions

View file

@ -28,7 +28,6 @@ const methoddata = `
{ "type" : "function", "name" : "transfer", "constant" : false, "inputs" : [ { "name" : "from", "type" : "address" }, { "name" : "to", "type" : "address" }, { "name" : "value", "type" : "uint256" } ], "outputs" : [ { "name" : "success", "type" : "bool" } ] } { "type" : "function", "name" : "transfer", "constant" : false, "inputs" : [ { "name" : "from", "type" : "address" }, { "name" : "to", "type" : "address" }, { "name" : "value", "type" : "uint256" } ], "outputs" : [ { "name" : "success", "type" : "bool" } ] }
]` ]`
func TestMethodString(t *testing.T) { func TestMethodString(t *testing.T) {
var table = []struct { var table = []struct {
method string method string
@ -46,7 +45,6 @@ func TestMethodString(t *testing.T) {
method: "transfer", method: "transfer",
expectation: "function transfer(address from, address to, uint256 value) returns(bool success)", expectation: "function transfer(address from, address to, uint256 value) returns(bool success)",
}, },
} }
abi, err := JSON(strings.NewReader(methoddata)) abi, err := JSON(strings.NewReader(methoddata))