Update isTokenTransfer
This commit is contained in:
parent
bc4854d644
commit
39111829cb
|
@ -49,4 +49,4 @@ export const isAddressAToken = async (tokenAddress: string) => {
|
||||||
return call !== '0x'
|
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
|
||||||
|
|
Loading…
Reference in New Issue