Fix/div by zero (#5041)

* Handle gas_price being zero separately

* Bump spec_version

* Add a unit & integration tests for gas price = 0
This commit is contained in:
Eric authored and GitHub committed 2020-02-26 15:19:53 +01:00
1 parent a2ff54dfa9
commit 01c6b7cdde
3 files changed
+42 -4

No files matched your search

+2 -2
View File
@@ -81,8 +81,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 225,
impl_version: 1,
spec_version: 226,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
};