fix: remove payable modifier
This commit is contained in:
parent
44224b1dca
commit
1f1ec9c0bc
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue