A bug in create_traces code on Polygon

The following script checks the size of deployed proxy objects. however, the reported contract sizes are wrong.

SELECT ad.factory,  varbinary_length(p.code) as len, p.tx_hash, p.address
FROM account_abstraction_erc4337.account_deployed ad
INNER JOIN polygon.creation_traces p
ON ad.sender = p.address
AND ad.blockchain = 'polygon'
limit 10000

e.g. the script reported that address 0x07a46b347c8e2e6b4e0d1709a6e3fe2ab7697343 has a code of size 333

however, using

cast cs -r polygon 0x07a46b347c8e2e6b4e0d1709a6e3fe2ab7697343 returns the actual contract size - 95 bytes.

The same script applied to "ethereum" network return correct sizes.

Please authenticate to join the conversation.

Upvoters
Status

Open

Board

Bugs

Date

About 2 years ago

Author

drortirosh

Subscribe to post

Get notified by email when there are changes.