Skip to content

Commit

Permalink
fix: chai fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfopietro97 committed Jul 6, 2023
1 parent 05ef725 commit 7ead32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/abi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ describe('abi', () => {
expect(() => abi.encodeParameter('WRONG', 10)).to.throw()

// Exception on decoding
expect(abi.decodeParameter('uint256', 'WRONG_UINT').to.throw())
expect(() => abi.decodeParameter('uint256', 'WRONG_UINT')).to.throw(Error, "invalid hexidecimal string")
})

it('function', () => {
Expand Down Expand Up @@ -331,7 +331,7 @@ describe('abi', () => {
expect(e5.encode({ a1: hexSlice })).deep.equal([e5.signature, hash])

// Wrong encoding of event hex format
expect(e5.encode({ a1: "WRONG_HEX_FORMAT" })).to.throw()
expect(() => e5.encode({ a1: "WRONG_HEX_FORMAT" })).to.throw(Error, "event.encode: invalid bytes value")
})

it('v2: Function', () => {
Expand Down

0 comments on commit 7ead32a

Please sign in to comment.