Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 884 Bytes

cylzxje-G.md

File metadata and controls

26 lines (22 loc) · 884 Bytes

[G-01] Revert transactions for debugging and returning gas on failed txs

[G-02] Use bytes.concat instead of abi.encodePacked


[G-01] Revert transactions for debugging and returning gas on failed txs

ethereum/contracts/common/AllowList.sol

Recommend adding else branch with error messages

else {
	revert sameOwner(); 
}
else {
	revert samePendingOwner();
}

[G-02] Use bytes.concat instead of abi.encodePacked

zksync/contracts/bridge/L2ERC20Bridge.sol

Recommend using version ^0.8.12 and changing to bytes.concat