Commit 3073890c authored by lyn's avatar lyn Committed by vipwzw

update unpack test

parent 7e2ba8f9
......@@ -124,9 +124,8 @@ var unpackTests = []unpackTest{
},
{
def: `[{"type": "address"}]`,
enc: "0000000000000000000000000100000000000000000000000000000000000000",
want: common.Hash160Address{0},
err: "abi: cannot unmarshal string in to common.Hash160Address",
enc: "00000000000000000000000000ce0d46d924cc8437c806721496599fc3ffa268",
want: common.HexToAddress("0x00Ce0d46d924CC8437c806721496599FC3FFA268").ToAddress().String(),
},
{
def: `[{"type": "bytes32"}]`,
......
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