fix: renames verify... methods to validate... (#1624)

* rename verify -> validate

* fix imports

* run eslint --fix on test/
This commit is contained in:
Mayukha Vadari
2021-09-16 21:14:22 -04:00
parent eb0445817e
commit 13c52859eb
51 changed files with 423 additions and 461 deletions

View File

@@ -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') {