Skip to content

ERC-20 precompile: add zero-address validation in transfer/transferFrom #975

@linear

Description

@linear

The transfer() function in precompiles/erc20/tx.go doesn't validate that the recipient address is non-zero.

Per ERC-20 standard (EIP-20), transfers to address(0) should revert, but currently they succeed, causing permanent token loss.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions