Skip to content

Commit

Permalink
add negative test case for evm script by address
Browse files Browse the repository at this point in the history
  • Loading branch information
lykalabrada committed Jul 31, 2023
1 parent 3659cb5 commit 66df46c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/jellyfish-crypto/__tests__/eth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ it('should convert evm address to script', () => {
]
})
})

it('should return undefined script for invalid eth address', () => {
const evmScript = Eth.fromAddress('0xabc123')
expect(evmScript).toStrictEqual(undefined)
})

0 comments on commit 66df46c

Please sign in to comment.