mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
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:
13
test/fixtures/rippled/accountObjectsEmpty.json
vendored
Normal file
13
test/fixtures/rippled/accountObjectsEmpty.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"id": 1,
|
||||
"status": "success",
|
||||
"type": "response",
|
||||
"result": {
|
||||
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"account_objects": [],
|
||||
"ledger_hash":
|
||||
"053DF17D2289D1C4971C22F235BC1FCA7D4B3AE966F842E5819D0749E0B8ECD3",
|
||||
"ledger_index": 14378733,
|
||||
"validated": true
|
||||
}
|
||||
}
|
||||
3
test/fixtures/rippled/index.ts
vendored
3
test/fixtures/rippled/index.ts
vendored
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user