Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Update MultiInvoker for native USDC support #212

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/perennial/contracts/multiinvoker/MultiInvoker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract MultiInvoker is IMultiInvoker, UInitializable {
* @dev Must be called atomically as part of the upgradeable proxy deployment to
* avoid front-running
*/
function initialize() external initializer(2) {
function initialize() external initializer(3) {
if (address(batcher) != address(0)) {
DSU.approve(address(batcher), UFixed18Lib.ZERO);
DSU.approve(address(batcher));
Expand Down
30 changes: 15 additions & 15 deletions packages/perennial/deployments/arbitrum/MultiInvoker_Impl.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/perennial/external/deployments/arbitrum/USDC.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
"address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"abi": [
{
"inputs": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('MultiInvoker', () => {
it('reverts if already initialized', async () => {
await expect(instanceVars.multiInvoker.initialize())
.to.be.revertedWithCustomError(instanceVars.multiInvoker, 'UInitializableAlreadyInitializedError')
.withArgs(2)
.withArgs(3)
})
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('MultiInvokerRollup', () => {
it('reverts if already initialized', async () => {
await expect(instanceVars.multiInvokerRollup.initialize())
.to.be.revertedWithCustomError(instanceVars.multiInvokerRollup, 'UInitializableAlreadyInitializedError')
.withArgs(2)
.withArgs(3)
})
})

Expand Down
Loading