From 1f1ec9c0bcac8355fb0f8fcb2b37533ea148dc25 Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Wed, 23 Aug 2023 18:26:20 +0530 Subject: [PATCH] fix: remove payable modifier --- contracts/WakuRlnRegistry.sol | 6 +++--- docs/index.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/WakuRlnRegistry.sol b/contracts/WakuRlnRegistry.sol index 6960d2b..9f944fa 100644 --- a/contracts/WakuRlnRegistry.sol +++ b/contracts/WakuRlnRegistry.sol @@ -48,7 +48,7 @@ contract WakuRlnRegistry is Ownable { _insertIntoStorageMap(address(newStorageContract)); } - function register(uint256[] calldata commitments) external payable onlyUsableStorage { + function register(uint256[] calldata commitments) external onlyUsableStorage { // iteratively check if the storage contract is full, and increment the usingStorageIndex if it is while (true) { try WakuRln(storages[usingStorageIndex]).register(commitments) { @@ -67,12 +67,12 @@ contract WakuRlnRegistry is Ownable { } } - function register(uint16 storageIndex, uint256[] calldata commitments) external payable { + function register(uint16 storageIndex, uint256[] calldata commitments) external { if (storageIndex >= nextStorageIndex) revert NoStorageContractAvailable(); WakuRln(storages[storageIndex]).register(commitments); } - function register(uint16 storageIndex, uint256 commitment) external payable { + function register(uint16 storageIndex, uint256 commitment) external { if (storageIndex >= nextStorageIndex) revert NoStorageContractAvailable(); // optimize the gas used below uint256[] memory commitments = new uint256[](1); diff --git a/docs/index.md b/docs/index.md index 1bb0cc2..a965d33 100644 --- a/docs/index.md +++ b/docs/index.md @@ -181,19 +181,19 @@ function newStorage() external ### register ```solidity -function register(uint256[] commitments) external payable +function register(uint256[] commitments) external ``` ### register ```solidity -function register(uint16 storageIndex, uint256[] commitments) external payable +function register(uint16 storageIndex, uint256[] commitments) external ``` ### register ```solidity -function register(uint16 storageIndex, uint256 commitment) external payable +function register(uint16 storageIndex, uint256 commitment) external ``` ### forceProgress