mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
fix: renames verify... methods to validate... (#1624)
* rename verify -> validate * fix imports * run eslint --fix on test/
This commit is contained in:
@@ -3,13 +3,11 @@ import assert from 'assert'
|
||||
import _ from 'lodash'
|
||||
import { decode } from 'ripple-binary-codec'
|
||||
|
||||
import { Client, Wallet } from 'xrpl-local'
|
||||
import { Client, Wallet, Transaction } from 'xrpl-local'
|
||||
import { AccountSet, SignerListSet } from 'xrpl-local/models/transactions'
|
||||
import { convertStringToHex } from 'xrpl-local/utils'
|
||||
import { sign, multisign } from 'xrpl-local/wallet/signer'
|
||||
|
||||
import { Transaction } from '../../src/models/transactions'
|
||||
|
||||
import serverUrl from './serverUrl'
|
||||
import { setupClient, suiteClientSetup, teardownClient } from './setup'
|
||||
import {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { decode } from 'ripple-binary-codec'
|
||||
|
||||
import { Client, SubmitResponse, Wallet } from 'xrpl-local'
|
||||
import {
|
||||
verifyPayment,
|
||||
validatePayment,
|
||||
Payment,
|
||||
Transaction,
|
||||
} from 'xrpl-local/models/transactions'
|
||||
@@ -46,7 +46,7 @@ export async function fundAccount(
|
||||
Amount: '400000000',
|
||||
}
|
||||
const paymentTx = await client.autofill(payment)
|
||||
verifyPayment(paymentTx)
|
||||
validatePayment(paymentTx)
|
||||
|
||||
const response = await submitTransaction(client, masterSecret, paymentTx)
|
||||
if (response.result.engine_result !== 'tesSUCCESS') {
|
||||
|
||||
Reference in New Issue
Block a user