Skip to content

Commit

Permalink
big_float_ln mandos split
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Jul 4, 2024
1 parent 8eea61e commit 5a6a5e8
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"gasSchedule": "v3",
"steps": [
{
"step": "setState",
"accounts": {
"sc:basic-features": {
"nonce": "0",
"balance": "0",
"code": "mxsc:../output/big-float-features.mxsc.json"
},
"address:an_account": {
"nonce": "0",
"balance": "100000000000"
}
}
},
{
"step": "scCall",
"id": "LnBigFloatRef - 1",
"tx": {
"from": "address:an_account",
"to": "sc:basic-features",
"function": "ln_big_float_ref_wrapped",
"arguments": [
"23",
"9"
],
"gasLimit": "50,000,000",
"gasPrice": "0"
},
"expect": {
"out": [
"0x0000000500bae4281800000009"
]
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -820,26 +820,6 @@
"-1"
]
}
},
{
"step": "scCall",
"id": "LnBigFloatRef - 1",
"tx": {
"from": "address:an_account",
"to": "sc:basic-features",
"function": "ln_big_float_ref_wrapped",
"arguments": [
"23",
"9"
],
"gasLimit": "50,000,000",
"gasPrice": "0"
},
"expect": {
"out": [
"0x0000000500bae4281800000009"
]
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ fn world() -> ScenarioWorld {
ScenarioWorld::vm_go()
}

#[test]
fn big_float_ln_go() {
world().run("scenarios/big_float_ln.scen.json");
}

#[test]
fn big_float_new_from_big_int_go() {
world().run("scenarios/big_float_new_from_big_int.scen.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ fn world() -> ScenarioWorld {
blockchain
}

#[test]
fn big_float_ln_rs() {
world().run("scenarios/big_float_ln.scen.json");
}

#[test]
fn big_float_new_from_big_int_rs() {
world().run("scenarios/big_float_new_from_big_int.scen.json");
Expand Down

0 comments on commit 5a6a5e8

Please sign in to comment.