Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Remove WAST support from cleos set code/contract #5160

Merged
merged 6 commits into from
Aug 12, 2018
Merged

Conversation

spoonincode
Copy link
Contributor

The textual format of WebAssembly continues to be somewhat fluid. For example, the renaming of grow_memory with memory.grow. The binary format has been stable for some time. Only consume the binary format in cleos now -- the eosio tools (like eosiocpp) have produced binary .wasm files since the 1.0 release by default as do most other toolchains. This protects us from further deviations of the textual format

The textual format of WebAssembly continues to be somewhat fluid. For example, the renaming of grow_memory with memory.grow. The binary format has been stable for some time. Only consume the binary format in cleos now -- the eosio tools (like eosiocpp) have produced binary .wasm files since the 1.0 release by default as do most other toolchains. This protects us from further deviations of the textual format
std::cerr << localized(("Reading WASM from " + wasmPath + "...").c_str()) << std::endl;
fc::read_file_contents(wasmPath, wast);
EOS_ASSERT( !wast.empty(), wast_file_not_found, "no wasm file found ${f}", ("f", wasmPath) );
vector<uint8_t> wasm = vector<uint8_t>(wast.begin(), wast.end());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhat minor, but wast variable should be wasm

@heifner heifner merged commit 383d276 into develop Aug 12, 2018
@heifner heifner deleted the no_cleos_wast branch August 12, 2018 02:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants