Skip to content

Commit ee2acc4

Browse files
committed
ut updateaAccount
1 parent 7be8b5d commit ee2acc4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/tests/user.test.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let privateKey2 = 'ada29a473e2b777403e7d2dc3876c5be03ca6b60d97e37e9bd335b1ce05a2
3535

3636
let eddkeyWhitelisted = '0x27a5b716c7309a30703ede3f1a218cdec857e424a31543f8a658e7d2208db33'
3737

38-
describe('Transfer test', function () {
38+
describe('UserAPI test', function () {
3939

4040
beforeEach(async () => {
4141
userApi = new UserAPI({chainId: ChainId.GOERLI})
@@ -269,20 +269,22 @@ describe('Transfer test', function () {
269269
publicKey: {x: eddsaKey.formatedPx, y: eddsaKey.formatedPy,},
270270
maxFee: {
271271
tokenId: 1,
272-
volume: '0100000000000000000'},
272+
volume: '0100000000000000000'
273+
},
273274
validUntil: VALID_UNTIL,
274275
nonce: accInfo.nonce as number,
275276
}
276-
277-
const result = userApi.updateAccount({
277+
const result = await userApi.updateAccount({
278278
request,
279279
web3,
280280
chainId: ChainId.GOERLI,
281-
walletType: ConnectorNames.MetaMask,
281+
walletType: ConnectorNames.Unknown,
282282
isHWAddr: false
283283
})
284-
console.log('updateAccount result: ',JSON.stringify(result))
284+
console.log('updateAccount result: ', JSON.stringify(result))
285285

286286
}, DEFAULT_TIMEOUT)
287287

288288
})
289+
290+

0 commit comments

Comments
 (0)