srml-contracts: Apply contract removals immediately (#3417)

* Add ability to destroy a contract in the overlay.

* Don't allow contracts to be destroyed in recursive execution.

* Tests for contract self-destruction.

* Don't allow constructor to exit with insufficient balance.

* Remove dead code.

* Bump node runtime spec version.
This commit is contained in:
Jim Posen
2019-08-21 16:44:27 +02:00
committed by Gavin Wood
parent 895c872a09
commit 974b341b14
5 changed files with 616 additions and 38 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to equal spec_version. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 148,
impl_version: 148,
spec_version: 149,
impl_version: 149,
apis: RUNTIME_API_VERSIONS,
};