From 099ce893e11c3155c7aa0f6aa8cee2c6b11a1b25 Mon Sep 17 00:00:00 2001 From: canonbrother Date: Thu, 22 Feb 2024 14:55:39 +0800 Subject: [PATCH] update err msg --- .../__tests__/category/account/transferDomain.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jellyfish-api-core/__tests__/category/account/transferDomain.test.ts b/packages/jellyfish-api-core/__tests__/category/account/transferDomain.test.ts index 108c05ff2c..20553b993d 100644 --- a/packages/jellyfish-api-core/__tests__/category/account/transferDomain.test.ts +++ b/packages/jellyfish-api-core/__tests__/category/account/transferDomain.test.ts @@ -220,7 +220,7 @@ describe('TransferDomain', () => { } ]) await expect(promise).rejects.toThrow(RpcApiError) - await expect(promise).rejects.toThrow('Failed to create and sign TX: Invalid address') + await expect(promise).rejects.toThrow('Dst address must be an ERC55 address in case of "EVM" domain') }) it('(evm -> dvm) should fail if src address is not ERC55 address in case of "EVM" domain', async () => { @@ -488,7 +488,7 @@ describe('TransferDomain', () => { } ]) await expect(promise).rejects.toThrow(RpcApiError) - await expect(promise).rejects.toThrow('Failed to create and sign TX: Invalid address') + await expect(promise).rejects.toThrow('Cannot transfer inside same domain') }) it('(evm -> evm) should fail if transfer within same domain', async () => {