srml-contract: Contract refactors (#2924)

* srml-contract: Refactor away unnecessary Option.

* srml-contract: Add assertion to gas_left test.

* srml-contract: Refactor try_evict_or_and_pay_rent to make tests pass.

* srml-contract: Add tests and comments for bugs in rent payment logic.

* srml-contract: Minor cleanup using GasMeter constructor.

* Bump node runtime impl version.
This commit is contained in:
Jim Posen
2019-06-27 14:49:53 +02:00
committed by Sergei Pepyakin
parent 62b7c05def
commit 068d99d481
7 changed files with 111 additions and 135 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ define_env!(Env, <E: Ext>,
Ok(())
},
// Retrieve the value at the given location from the strorage and return 0.
// Retrieve the value at the given location from the storage and return 0.
// If there is no entry at the given location then this function will return 1 and
// clear the scratch buffer.
//