Skip to content

Commit

Permalink
fix: remove payable condition on initializers and others
Browse files Browse the repository at this point in the history
  • Loading branch information
martillansky committed Aug 15, 2024
1 parent a1671ef commit 4d316d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/ProofOfHumanity.sol
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ contract ProofOfHumanity is IProofOfHumanity, IArbitrable, IEvidence {
uint40 _failedRevocationCooldown,
uint256[3] memory _multipliers,
uint32 _requiredNumberOfVouches
) public payable initializer {
) public initializer {
wNative = _wNative;
governor = msg.sender;
requestBaseDeposit = _requestBaseDeposit;
Expand Down
2 changes: 1 addition & 1 deletion contracts/bridge-gateways/AMBBridgeGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract AMBBridgeGateway is IBridgeGateway, IAMBReceiver {
/** @dev Change the governor of the contract.
* @param _governor The address of the new governor.
*/
function changeGovernor(address _governor) external payable onlyGovernor {
function changeGovernor(address _governor) external onlyGovernor {
governor = _governor;
}
}
2 changes: 1 addition & 1 deletion contracts/extending-old/ForkModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract ForkModule is IForkModule {
* @param _proofOfHumanityV1 The address of the PoH v1 contract.
* @param _proofOfHumanityV2 The address of the PoH v2 contract.
*/
function initialize(address _proofOfHumanityV1, address _proofOfHumanityV2) public payable initializer {
function initialize(address _proofOfHumanityV1, address _proofOfHumanityV2) public initializer {
proofOfHumanityV1 = IProofOfHumanityOld(_proofOfHumanityV1);
proofOfHumanityV2 = _proofOfHumanityV2;

Expand Down
2 changes: 1 addition & 1 deletion contracts/extending-old/ProofOfHumanityExtended.sol
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ contract ProofOfHumanityExtended is IProofOfHumanity, IArbitrable, IEvidence {
uint40 _failedRevocationCooldown,
uint256[3] memory _multipliers,
uint32 _requiredNumberOfVouches
) public payable initializer {
) public initializer {
wNative = _wNative;
governor = msg.sender;
requestBaseDeposit = _requestBaseDeposit;
Expand Down

0 comments on commit 4d316d0

Please sign in to comment.