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

Commit

Permalink
Merge pull request #1478 from larryk85/fix/reintegrate_wasm_tests
Browse files Browse the repository at this point in the history
Fix/reintegrate wasm tests
  • Loading branch information
b1bart authored Feb 26, 2018
2 parents 356a8c2 + 51cf15c commit 2fee26e
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 702 deletions.
4 changes: 1 addition & 3 deletions libraries/chain/apply_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ void apply_context::exec_one()
// get code from cache
auto code = mutable_controller.get_wasm_cache().checkout_scoped(a.code_version, a.code.data(),
a.code.size());

// get wasm_interface
auto &wasm = wasm_interface::get();
wasm.apply(code, *this);
}
}
}
} FC_CAPTURE_AND_RETHROW((_pending_console_output.str()));

Expand Down Expand Up @@ -95,7 +94,6 @@ void apply_context::exec_one()
void apply_context::exec()
{
_notified.push_back(act.account);

for( uint32_t i = 0; i < _notified.size(); ++i ) {
receiver = _notified[i];
exec_one();
Expand Down
2 changes: 1 addition & 1 deletion libraries/chain/include/eosio/chain/apply_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class apply_context {
if (itr->t_id != tab->id) return -1;

itr_cache.cache_table(*tab);
return itr_cache(*itr);
return itr_cache.add(*itr);
}

int next_primary( int iterator, uint64_t& primary ) {
Expand Down
2 changes: 1 addition & 1 deletion libraries/wasm-jit/Source/WASM/WASMSerialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ namespace WASM
Serialization::OutputStream& byteStream;
FunctionDef& functionDef;
};

template<typename Injection>
struct WasmSerializationImpl
{
Expand Down
224 changes: 0 additions & 224 deletions scripts/eosio-build_darwin.sh

This file was deleted.

Loading

0 comments on commit 2fee26e

Please sign in to comment.