Skip to content

Commit

Permalink
Fix expectAssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
h0ngcha0 committed Apr 11, 2024
1 parent d354dad commit a6759f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-test/src/test-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export async function transfer(from: PrivateKeyWallet, to: Address, tokenId: str
export async function expectAssertionError(p: Promise<unknown>, address: string, errorCode: number): Promise<void> {
expect(isBase58(address)).toEqual(true)
await expect(p).rejects.toThrowError(
new RegExp(`VM execution error: Assertion Failed in Contract @ ${address}, Error Code: ${errorCode}`, 'mg')
new RegExp(`Assertion Failed in Contract @ ${address}, Error Code: ${errorCode}`, 'mg')
)
}

Expand Down

0 comments on commit a6759f8

Please sign in to comment.