Skip to content

Commit 4770b1f

Browse files
fix(Arbitrator): memory to calldata
1 parent f189dd9 commit 4770b1f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 0.1.0 (2021-11-23)
22

3+
- fix(IArbitrator): replaced appealCost with fundingStatus ([f189dd9](https://github.com/kleros/kleros-v2/commit/f189dd9))
34
- feat: modern toolchain setup and simple RNG smart contracts ([17f6a76](https://github.com/kleros/kleros-v2/commit/17f6a76))
45
- feat(Arbitration): standard update ([ed930de](https://github.com/kleros/kleros-v2/commit/ed930de))
56
- chore: added GitHub code scanning ([4a70475](https://github.com/kleros/kleros-v2/commit/4a70475))

contracts/src/arbitration/CentralizedArbitrator.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ contract CentralizedArbitrator is IArbitrator {
317317
* @return fee The required amount.
318318
*/
319319
function arbitrationCost(
320-
bytes memory /*_extraData*/
320+
bytes calldata /*_extraData*/
321321
) public view override returns (uint256 fee) {
322322
return arbitrationFee;
323323
}
@@ -328,7 +328,7 @@ contract CentralizedArbitrator is IArbitrator {
328328
* @return funded The amount funded so far for this subset in wei.
329329
* @return goal The amount to fully fund this subset in wei.
330330
*/
331-
function fundingStatus(uint256 _disputeID, uint256[] memory _choices)
331+
function fundingStatus(uint256 _disputeID, uint256[] calldata _choices)
332332
external
333333
view
334334
override

contracts/src/arbitration/IArbitrator.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface IArbitrator {
5656
* @param _extraData Can be used to give additional info on the dispute to be created.
5757
* @return cost Required cost of arbitration.
5858
*/
59-
function arbitrationCost(bytes memory _extraData) external view returns (uint256 cost);
59+
function arbitrationCost(bytes calldata _extraData) external view returns (uint256 cost);
6060

6161
/**
6262
* @dev Return the funded amount and funding goal for one (or the subset) of choices.
@@ -66,7 +66,7 @@ interface IArbitrator {
6666
* @return funded The amount funded so far for this subset in wei.
6767
* @return goal The amount to fully fund this subset in wei.
6868
*/
69-
function fundingStatus(uint256 _disputeID, uint256[] memory _choices)
69+
function fundingStatus(uint256 _disputeID, uint256[] calldata _choices)
7070
external
7171
view
7272
returns (uint256 funded, uint256 goal);

0 commit comments

Comments
 (0)