Closed SavindaSenevirathne closed 1 year ago
State objects are not created if the account reserve is not enough. state_set doesn't return any error code.
state_set
Sample code: state_reserve_not_creating.zip
node run.js sn6Eh5HPDsmsPG4RgnHCVFSgoo7FH ws://localhost:6005
Transaction invoking the state creation should be rejected by the hook since state creation is not finished properly.
Transaction invoking the state creation is accepted by the hook since no error is returned from set_state. But no state object is created.
set_state
Ubuntu 18.04 Hook testnet - wss://hooks-testnet.xrpl-labs.com
wss://hooks-testnet.xrpl-labs.com
I believe this is fixed. If you could please test on your end? I will also add this to the unit tests shortly.
@RichardAH tested. Now the issue is fixed.
Issue Description
State objects are not created if the account reserve is not enough.
state_set
doesn't return any error code.Steps to Reproduce
Sample code: state_reserve_not_creating.zip
Expected Result
Transaction invoking the state creation should be rejected by the hook since state creation is not finished properly.
Actual Result
Transaction invoking the state creation is accepted by the hook since no error is returned from
set_state
. But no state object is created.Environment
Ubuntu 18.04 Hook testnet -
wss://hooks-testnet.xrpl-labs.com