srml-contract: Fail calls to removed contracts instead of succeeding. (#2968)
* srml-contract: Refactor to reduce unnecessary storage lookups. * srml-contract: Fail calls to removed contracts. Previously, the calls would transfer funds and succeed without executing any code on the target account, which is unintuitive behavior. * Bump node runtime spec/impl versions.
Showing
- substrate/srml/contracts/src/exec.rs 22 additions, 11 deletionssubstrate/srml/contracts/src/exec.rs
- substrate/srml/contracts/src/rent.rs 24 additions, 22 deletionssubstrate/srml/contracts/src/rent.rs
- substrate/srml/contracts/src/tests.rs 49 additions, 3 deletionssubstrate/srml/contracts/src/tests.rs
Please register or sign in to comment