From 5b12d3fa21635145cb8a752b56477e22fca77a5b Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Fri, 30 Oct 2020 12:55:53 -0400 Subject: remove these ID calls: Key(), Bytes(), Equals(), NewID(), IsZero() --- examples/mctx_gen/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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) -- cgit v1.2.3