diff --git a/packages/ethereum-contracts/CHANGELOG.md b/packages/ethereum-contracts/CHANGELOG.md index 23338ed5d5..2b1b4b7001 100644 --- a/packages/ethereum-contracts/CHANGELOG.md +++ b/packages/ethereum-contracts/CHANGELOG.md @@ -41,6 +41,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - [`dev-scripts/deploy-test-framework.js`](dev-scripts/deploy-test-framework.js) compatible with both ethers-v5 and ethers-v6 now +- `distribute` and `distributeWithCtx` API made consistent ## [v1.8.1] - 2023-08-28 diff --git a/packages/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol b/packages/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol index 40da018f1d..ee6f1ee95b 100644 --- a/packages/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol +++ b/packages/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol @@ -2059,8 +2059,8 @@ library SuperTokenV1Library { */ function distributeWithCtx( ISuperToken token, - ISuperfluidPool pool, address from, + ISuperfluidPool pool, uint256 requestedAmount, bytes memory ctx ) internal returns (bytes memory newCtx) { diff --git a/packages/ethereum-contracts/contracts/mocks/SuperTokenLibraryV1Mock.sol b/packages/ethereum-contracts/contracts/mocks/SuperTokenLibraryV1Mock.sol index 3e5dc35c23..8dbeb8747e 100644 --- a/packages/ethereum-contracts/contracts/mocks/SuperTokenLibraryV1Mock.sol +++ b/packages/ethereum-contracts/contracts/mocks/SuperTokenLibraryV1Mock.sol @@ -869,7 +869,7 @@ contract SuperTokenLibraryGDASuperAppMock is SuperTokenLibraryGDAMock, SuperAppB } else if (functionIndex == uint8(FunctionIndex.CLAIM_ALL)) { return token.claimAllWithCtx(ISuperfluidPool(pool), member, ctx); } else if (functionIndex == uint8(FunctionIndex.DISTRIBUTE)) { - return token.distributeWithCtx(ISuperfluidPool(pool), from, requestedAmount, ctx); + return token.distributeWithCtx(from, ISuperfluidPool(pool), requestedAmount, ctx); } else if (functionIndex == uint8(FunctionIndex.DISTRIBUTE_FLOW)) { return token.distributeFlowWithCtx(from, ISuperfluidPool(pool), requestedFlowRate, ctx); } else {