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

Gas Limit for External Calls #3

Open
juddydev opened this issue Jul 4, 2024 · 0 comments
Open

Gas Limit for External Calls #3

juddydev opened this issue Jul 4, 2024 · 0 comments

Comments

@juddydev
Copy link
Owner

juddydev commented Jul 4, 2024

The external calls to transfer ETH might fail if the gas cost increases. Using call with a specific gas limit can mitigate this issue

event SignerAddressChanged(address indexed previousSigner, address indexed newSigner);
function setSignerAddress(address payable _newAddress) external onlyOwner {
require(_newAddress != address(0), "INVALID_SIGNER");
address previousSigner = signer;
signer = _newAddress;
emit SignerAddressChanged(previousSigner, _newAddress);
}

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