Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6ffeb48
Replace sp-sandbox and wasmi-validation by just wasmi
athei Oct 11, 2022
c50559e
Merge branch 'master' of https://github.com/paritytech/substrate into…
Oct 28, 2022
8198e35
".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Oct 28, 2022
6fb5d29
Merge branch 'master' into at/contracts-wasmi
athei Oct 29, 2022
d0f29e4
Merge branch 'master' into at/contracts-wasmi
athei Oct 30, 2022
e3d3dfb
Re-check original code on re-instrumentation
athei Oct 30, 2022
cf4224b
Merge branch 'master' into at/contracts-wasmi
athei Oct 30, 2022
0386a55
Fix clippy
athei Oct 30, 2022
722fd97
Merge branch 'master' of https://github.com/paritytech/substrate into…
Oct 31, 2022
29a48fe
".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Oct 31, 2022
5b762e2
Merge branch 'master' into at/contracts-wasmi
athei Nov 13, 2022
6641366
Apply suggestions from code review
athei Nov 13, 2022
59aaea8
Replace wasmi by ::wasmi
athei Nov 13, 2022
ac6c957
Bump wasmi to 0.20
athei Nov 13, 2022
8339073
Add explanation for `unreachable`
athei Nov 13, 2022
4a32321
Change proof
athei Nov 13, 2022
f3af361
Merge branch 'master' into at/contracts-wasmi
athei Nov 15, 2022
f161f9d
Fixup master merge
athei Nov 15, 2022
6a847b0
Merge branch 'master' into at/contracts-wasmi
athei Nov 15, 2022
938901b
".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Nov 15, 2022
204be29
Merge branch 'master' into at/contracts-wasmi
athei Nov 17, 2022
f3ce2fd
Fixup naming inconsistencies introduced by reentrancy PR
athei Nov 17, 2022
589a100
Fix `scan_imports` docs
athei Nov 17, 2022
8505a54
Apply suggestions from code review
athei Nov 17, 2022
9244642
Fixup suggestions
athei Nov 17, 2022
af4e34f
Remove unnecessary &mut
athei Nov 17, 2022
94b30c2
Fix test
athei Nov 17, 2022
ec7522e
".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Nov 17, 2022
8df8b70
Fix benchmark merge fail
athei Nov 18, 2022
2a2af0b
Merge branch 'master' of https://github.com/paritytech/substrate into…
Nov 18, 2022
fee21da
".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Nov 18, 2022
6e0cd71
Merge branch 'master' into at/contracts-wasmi
athei Nov 22, 2022
8dcab8f
Fix docs as suggested by code review
athei Nov 22, 2022
a79fc1a
Improve docs for `CodeRejected`
athei Nov 22, 2022
442917e
Apply suggestions from code review
athei Nov 22, 2022
b6e79c3
Merge branch 'master' into at/contracts-wasmi
athei Nov 24, 2022
4b10d3f
Fix logic bug when setting `deterministic_only`
athei Nov 24, 2022
631d6df
Don't panic when module fails to compile
athei Nov 24, 2022
d39f085
Apply suggestions from code review
athei Nov 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't panic when module fails to compile
  • Loading branch information
athei committed Nov 24, 2022
commit 631d6df9900515fc53e7acdec1e83d59336aea1c
2 changes: 1 addition & 1 deletion frame/contracts/src/wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ where
.wasm_sign_extension(false)
.wasm_saturating_float_to_int(false);
let engine = Engine::new(&config);
let module = Module::new(&engine, code).unwrap();
let module = Module::new(&engine, code)?;
let mut store = Store::new(&engine, host_state);
let mut linker = Linker::new();
E::define(&mut store, &mut linker)?;
Expand Down