diff --git a/contracts/feature-tests/big-float-features/scenarios/big_float_ln.scen.json b/contracts/feature-tests/big-float-features/scenarios/big_float_ln.scen.json new file mode 100644 index 0000000000..9d7076be97 --- /dev/null +++ b/contracts/feature-tests/big-float-features/scenarios/big_float_ln.scen.json @@ -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" + ] + } + } + ] +} \ No newline at end of file diff --git a/contracts/feature-tests/big-float-features/scenarios/big_float_operators.scen.json b/contracts/feature-tests/big-float-features/scenarios/big_float_operators.scen.json index df136adf69..91c3128c8f 100644 --- a/contracts/feature-tests/big-float-features/scenarios/big_float_operators.scen.json +++ b/contracts/feature-tests/big-float-features/scenarios/big_float_operators.scen.json @@ -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" - ] - } } ] } \ No newline at end of file diff --git a/contracts/feature-tests/big-float-features/tests/big_float_scenario_go_test.rs b/contracts/feature-tests/big-float-features/tests/big_float_scenario_go_test.rs index bdfc6a1045..1cedeaa2f7 100644 --- a/contracts/feature-tests/big-float-features/tests/big_float_scenario_go_test.rs +++ b/contracts/feature-tests/big-float-features/tests/big_float_scenario_go_test.rs @@ -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"); diff --git a/contracts/feature-tests/big-float-features/tests/big_float_scenario_rs_test.rs b/contracts/feature-tests/big-float-features/tests/big_float_scenario_rs_test.rs index 60a9d0ed35..34bed93c83 100644 --- a/contracts/feature-tests/big-float-features/tests/big_float_scenario_rs_test.rs +++ b/contracts/feature-tests/big-float-features/tests/big_float_scenario_rs_test.rs @@ -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");