aboutsummaryrefslogtreecommitdiff
path: root/examples/mctx_gen/main.go
diff options
context:
space:
mode:
authorDan Laine <[email protected]>2020-10-30 12:55:53 -0400
committerDan Laine <[email protected]>2020-10-30 12:55:53 -0400
commit5b12d3fa21635145cb8a752b56477e22fca77a5b (patch)
treeb789cd27fc5a0795057f1c1ccbf17834a8af18c0 /examples/mctx_gen/main.go
parent4023ae20cb2b7cd228a68670bc55a6c9cdbabc36 (diff)
remove these ID calls: Key(), Bytes(), Equals(), NewID(), IsZero()v0.3.11-update-idupdate-id
Diffstat (limited to 'examples/mctx_gen/main.go')
-rw-r--r--examples/mctx_gen/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/mctx_gen/main.go b/examples/mctx_gen/main.go
index b0baac9..9deaf4b 100644
--- a/examples/mctx_gen/main.go
+++ b/examples/mctx_gen/main.go
@@ -57,7 +57,7 @@ func main() {
assetID, err := ids.FromString(fAssetID)
checkError(err)
mcAbi, err := abi.JSON(strings.NewReader(mcAbiJSON))
- data, err := mcAbi.Pack("transfer", to, big.NewInt(0), common.Hash(assetID.Key()).Big(), big.NewInt(fAmount))
+ data, err := mcAbi.Pack("transfer", to, big.NewInt(0), common.Hash(assetID).Big(), big.NewInt(fAmount))
checkError(err)
tx := types.NewTransaction(nonce, vm.BuiltinAddr, big.NewInt(0), uint64(gasLimit), gasPrice, data)
signedTx, err := types.SignTx(tx, types.NewEIP155Signer(chainID), pkey.PrivateKey)