feat: extra protection for AccountDelete transactions (#1626)

* add deletion blockers check to autofill

* add tests

* add fail_hard: true

* pass in account_objects response to error

* only fail_hard for AccountDelete

* reject promise instead of throwing error

* fix rebase issue
This commit is contained in:
Mayukha Vadari
2021-09-24 15:05:38 -04:00
parent bfeb737ad7
commit b7c4b16a8d
5 changed files with 92 additions and 49 deletions

View File

@@ -0,0 +1,13 @@
{
"id": 1,
"status": "success",
"type": "response",
"result": {
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"account_objects": [],
"ledger_hash":
"053DF17D2289D1C4971C22F235BC1FCA7D4B3AE966F842E5819D0749E0B8ECD3",
"ledger_index": 14378733,
"validated": true
}
}

View File

@@ -1,5 +1,6 @@
import normalAccountInfo from './accountInfo.json'
import notfoundAccountInfo from './accountInfoNotFound.json'
import emptyAccountObjects from './accountObjectsEmpty.json'
import normalAccountObjects from './accountObjectsNormal.json'
import account_offers from './accountOffers'
import normalAccountTx from './accountTx'
@@ -133,7 +134,7 @@ const streams = {
const account_objects = {
normal: normalAccountObjects,
// notfound: notfoundAccountObjects
empty: emptyAccountObjects,
}
const account_info = {