From 3e815b7b4944711218e7020e258ae4fb2756bb10 Mon Sep 17 00:00:00 2001 From: Alexandre Bourget Date: Fri, 16 Mar 2018 21:10:51 -0400 Subject: [PATCH] Compilation to `wasm` will be done by your toolchain of choice, the bios will not convert from `.wast` to `.wasm`. JS and C/C++ use the toolchains in their language because they exist, in Go we have wagon and plans to implement this here: https://github.com/go-interpreter/wagon/issues/34 The hash we check, in any case, would be the hash of the `.wasm`, and that is what is checked on the blockchain when you `get code`.. it's the end reference for the code. --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ee9ce2..448e979 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ eos-bios --launch-data ./launch.yaml \ --keybase-key ./file.key \ --bp-api-address http://1.2.3.4:8888 \ --bp-p2p-address 1.2.3.4:9876 \ - --eosio-system-code ./eosio-system.wast \ + --eosio-system-code ./eosio-system.wasm \ --eosio-system-abi ./eosio-system.abi \ --opening-balances-snapshot ./snapshot.csv ``` diff --git a/main.go b/main.go index 9a83617..7df35fc 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( var producerAPIAddress = flag.String("bp-api-address", "", "Target API endpoint for the locally booting node, a clean-slate node. It can be routable only from the local machine.") var producerP2PAddress = flag.String("bp-p2p-address", "", "Endpoint which will be published at the end of the process. Needs to be externally routable.") var eosioMyAccount = flag.String("eosio-my-account", "", "Endpoint which will be published at the end of the process. Needs to be externally routable.") -var eosioSystemCodePath = flag.String("eosio-system-code", "./eosio-system.wast", "Path to a compiled eosio.system contract .wast file") +var eosioSystemCodePath = flag.String("eosio-system-code", "./eosio-system.wasm", "Path to a compiled eosio.system contract .wasm file") var eosioSystemABIPath = flag.String("eosio-system-abi", "./eosio-system.abi", "Path to an eosio.system .abi file") var openingBalancesSnapshotPath = flag.String("opening-balances-snapshot", "./snapshot.csv", "Path to a fresh snapshot of the ERC-20 Crowdsale token") var keybaseKeyPath = flag.String("keybase-key", "", "Path to a PGP key, or keybase thing.. TBD")