-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
bigIntTDiv
division by 0 condition (#209)
* Fix `bigIntTDiv` division by 0 condition * Set Version: 0.1.9 * add test and fix error message --------- Co-authored-by: devops <[email protected]>
- Loading branch information
1 parent
cf37117
commit 18b8d3f
Showing
5 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "kmultiversx" | ||
version = "0.1.8" | ||
version = "0.1.9" | ||
description = "Python tools for Elrond semantics" | ||
authors = [ | ||
"Runtime Verification, Inc. <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.8 | ||
0.1.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
tests/custom-scenarios/basic-features/big_uint_div.scen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "pow", | ||
"gasSchedule": "v3", | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"sc:basic-features": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"storage": {}, | ||
"code": "file:../../../deps/mx-sdk-rs/contracts/feature-tests/basic-features/output/basic-features.wasm" | ||
}, | ||
"address:an_account": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"storage": {}, | ||
"code": "" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "pow", | ||
"tx": { | ||
"from": "address:an_account", | ||
"to": "sc:basic-features", | ||
"value": "0", | ||
"function": "div_big_uint", | ||
"arguments": [ | ||
"10", | ||
"0" | ||
], | ||
"gasLimit": "50,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [], | ||
"status": "10", | ||
"message": "str:division by 0", | ||
"logs": "*", | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters