Incorrect work of get_impacted_balances with lack of account name in body-operation argument.
Get_impacted_balances work in wrong way, when in body operation argument is lack of account name.
Correct body:
{"type":"escrow_transfer_operation","value":{"from":"hightouch","to":"fundition.help","hbd_amount":{"amount":"1","precision":3,"nai":"@@000000013"},"hive_amount":{"amount":"1","precision":3,"nai":"@@000000021"},"escrow_id":1,"agent":"ongame","fee":{"amount":"1","precision":3,"nai":"@@000000021"},"json_meta":"47700","ratification_deadline":"2018-11-06T04:05:33","escrow_expiration":"2018-11-07T04:05:33"}}
Test query:
SELECT ARRAY_AGG(ROW(f.account_name, f.amount, f.asset_precision, f.asset_symbol_nai)::hive.impacted_balances_return) FROM hive.get_impacted_balances('{"type":"escrow_transfer_operation","value":{"hbd_amount":{"amount":"1","precision":3,"nai":"@@000000013"},"hive_amount":{"amount":"1","precision":3,"nai":"@@000000021"},"escrow_id":1,"agent":"ongame","fee":{"amount":"1","precision":3,"nai":"@@000000021"},"json_meta":"47700","ratification_deadline":"2018-11-06T04:05:33","escrow_expiration":"2018-11-07T04:05:33"}}', FALSE) f
Returned record:
{"(\"\",-2,3,21)","(\"\",-1,3,13)"}
After consulting with @Trela , we came to the conclusion that such action is incorrect. An exception should be thrown or the entire record should be reset to zero.