Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Dec 18, 2023
1 parent b08a45b commit f5d1c31
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/arbOwnerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'viem';

import { arbOwner } from './contracts';
import { executeCallEncodeFunctionData } from './executeCallEncodeFunctionData';
import { upgradeExecutorEncodeFunctionData } from './upgradeExecutor';
import { Prettify } from './types/utils';

type ArbOwnerFunctionDataParameters = Prettify<
Expand Down Expand Up @@ -70,10 +70,13 @@ export function createArbOwnerClient({

return {
to: upgradeExecutor,
data: executeCallEncodeFunctionData([
arbOwner.address, // target
arbOwnerEncodeFunctionData(params), // targetCallData
]),
data: upgradeExecutorEncodeFunctionData({
functionName: 'executeCall',
args: [
arbOwner.address, // target
arbOwnerEncodeFunctionData(params), // targetCallData
],
}),
value: BigInt(0),
};
},
Expand Down

0 comments on commit f5d1c31

Please sign in to comment.