aboutsummaryrefslogtreecommitdiff
path: root/examples/mctx_gen/main.go
diff options
context:
space:
mode:
authoraaronbuchwald <aaron.buchwald56@gmail.com>2020-11-09 16:51:30 -0500
committerGitHub <noreply@github.com>2020-11-09 16:51:30 -0500
commitae4541f42a666fb5ae1c36d6f7423c3d9eb2c875 (patch)
tree449b53fd8522acc9adb54e93fdc50815f36000d9 /examples/mctx_gen/main.go
parentc613e21ea107e8369926f4b53b7830a9d5dabf18 (diff)
parent419cd2d882b93bd98f54957a15c25716fca09123 (diff)
Merge pull request #51 from ava-labs/devv0.3.14
Dev
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)