mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-01 01:25:48 +00:00
Lints src/common (#1595)
* lint errors (and remove unused error types) * lint fee * lint index * lint ecdsa * fix tests * remove address tests from getFee * fix more tests * fix tests * respond to comments
This commit is contained in:
@@ -4,7 +4,6 @@ import _ from 'lodash'
|
||||
import { isValidXAddress } from 'ripple-address-codec'
|
||||
|
||||
import { Client } from 'xrpl-local'
|
||||
import { errors } from 'xrpl-local/common'
|
||||
import { isValidSecret } from 'xrpl-local/utils'
|
||||
|
||||
import { generateXAddress } from '../../src/utils/generateAddress'
|
||||
@@ -46,24 +45,7 @@ function verifyTransaction(testcase, hash, type, options, txData, account) {
|
||||
}
|
||||
return { txJSON: JSON.stringify(txData), id: hash, tx: data }
|
||||
})
|
||||
.catch(async (error) => {
|
||||
if (error instanceof errors.PendingLedgerVersionError) {
|
||||
console.log('NOT VALIDATED YET...')
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(
|
||||
() =>
|
||||
verifyTransaction(
|
||||
testcase,
|
||||
hash,
|
||||
type,
|
||||
options,
|
||||
txData,
|
||||
account,
|
||||
).then(resolve, reject),
|
||||
INTERVAL,
|
||||
)
|
||||
})
|
||||
}
|
||||
.catch((error) => {
|
||||
console.log(error.stack)
|
||||
assert(false, `Transaction not successful: ${error.message}`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user