mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 07:35:52 +00:00
test: integration tests for Payment (#1635)
* test payment * use new helper function elsewhere * remove unneeded comment
This commit is contained in:
@@ -2,7 +2,7 @@ import assert from 'assert'
|
||||
|
||||
import _ from 'lodash'
|
||||
|
||||
import { Client, Wallet } from 'xrpl-local'
|
||||
import { Client } 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'
|
||||
@@ -10,7 +10,7 @@ import { sign, multisign } from 'xrpl-local/wallet/signer'
|
||||
import serverUrl from './serverUrl'
|
||||
import { setupClient, suiteClientSetup, teardownClient } from './setup'
|
||||
import {
|
||||
fundAccount,
|
||||
generateFundedWallet,
|
||||
ledgerAccept,
|
||||
testTransaction,
|
||||
verifySubmittedTransaction,
|
||||
@@ -32,10 +32,8 @@ describe('integration tests', function () {
|
||||
|
||||
it('submit multisigned transaction', async function () {
|
||||
const client: Client = this.client
|
||||
const signerWallet1 = Wallet.generate()
|
||||
await fundAccount(client, signerWallet1)
|
||||
const signerWallet2 = Wallet.generate()
|
||||
await fundAccount(client, signerWallet2)
|
||||
const signerWallet1 = await generateFundedWallet(client)
|
||||
const signerWallet2 = await generateFundedWallet(client)
|
||||
|
||||
// set up the multisigners for the account
|
||||
const signerListSet: SignerListSet = {
|
||||
|
||||
Reference in New Issue
Block a user