1
+ import { stringToHex } from '@xrplf/isomorphic/utils'
1
2
import { assert } from 'chai'
2
3
3
4
import {
@@ -10,7 +11,6 @@ import {
10
11
OfferCreate ,
11
12
ECDSA ,
12
13
} from '../../src'
13
- import { convertStringToHex } from '../../src/utils'
14
14
import { multisign } from '../../src/Wallet/signer'
15
15
16
16
import serverUrl from './serverUrl'
@@ -85,7 +85,7 @@ describe('regular key', function () {
85
85
const accountSet : AccountSet = {
86
86
TransactionType : 'AccountSet' ,
87
87
Account : regularKeyWallet . classicAddress ,
88
- Domain : convertStringToHex ( 'example.com' ) ,
88
+ Domain : stringToHex ( 'example.com' ) ,
89
89
}
90
90
91
91
await testTransaction ( testContext . client , accountSet , regularKeyWallet )
@@ -103,7 +103,7 @@ describe('regular key', function () {
103
103
const accountSet : AccountSet = {
104
104
TransactionType : 'AccountSet' ,
105
105
Account : masterWallet . classicAddress ,
106
- Domain : convertStringToHex ( 'example.com' ) ,
106
+ Domain : stringToHex ( 'example.com' ) ,
107
107
}
108
108
109
109
await testTransaction ( testContext . client , accountSet , masterWallet )
@@ -259,7 +259,7 @@ describe('regular key', function () {
259
259
const accountSet : AccountSet = {
260
260
TransactionType : 'AccountSet' ,
261
261
Account : testContext . wallet . classicAddress ,
262
- Domain : convertStringToHex ( 'example.com' ) ,
262
+ Domain : stringToHex ( 'example.com' ) ,
263
263
}
264
264
const accountSetTx = await client . autofill ( accountSet , 2 )
265
265
const signed1 = regularKeyWallet . sign ( accountSetTx , true )
@@ -319,7 +319,7 @@ describe('regular key', function () {
319
319
const accountSet : AccountSet = {
320
320
TransactionType : 'AccountSet' ,
321
321
Account : testContext . wallet . classicAddress ,
322
- Domain : convertStringToHex ( 'example.com' ) ,
322
+ Domain : stringToHex ( 'example.com' ) ,
323
323
}
324
324
const accountSetTx = await client . autofill ( accountSet , 2 )
325
325
const signed1 = sameKeyDefaultAddressWallet . sign ( accountSetTx , true )
0 commit comments