Update isTokenTransfer

This commit is contained in:
Germán Martínez 2019-09-19 18:37:29 +02:00
parent bc4854d644
commit 39111829cb
1 changed files with 1 additions and 1 deletions

View File

@ -49,4 +49,4 @@ export const isAddressAToken = async (tokenAddress: string) => {
return call !== '0x'
}
export const isTokenTransfer = async (data: string, value: number) => data.substring(0, 10) === '0xa9059cbb' && value === 0
export const isTokenTransfer = async (data: string, value: number) => data && data.substring(0, 10) === '0xa9059cbb' && value === 0