Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can profit from GasRefunder gas refund with 0 bytes padding #2310

Open
gzeoneth opened this issue Jun 21, 2022 · 0 comments
Open

Can profit from GasRefunder gas refund with 0 bytes padding #2310

gzeoneth opened this issue Jun 21, 2022 · 0 comments

Comments

@gzeoneth
Copy link
Member

It is possible to profit from GasRefunder gas refund by padding the calldata with 0 bytes at the end if calldataCost is less than 16.

https://github.com/OffchainLabs/arbitrum/blob/3a13334f1be625e52686e2689fa6def4910652dc/packages/arb-bridge-eth/contracts/validator/GasRefunder.sol#L84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant