Skip to content

Commit

Permalink
fix: make multisig e2e tests pass (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 authored Apr 30, 2024
1 parent fd8fbfb commit 08cf8d8
Show file tree
Hide file tree
Showing 28 changed files with 627 additions and 228 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"es2021": true,
"node": true
},
"plugins": ["import"],
"parserOptions": {
"sourceType": "module"
},
Expand Down
9 changes: 7 additions & 2 deletions packages/accounts/plugindefs/multisig/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const MultisigPluginAbi = [
],
outputs: [
{
name: "failed",
name: "success",
type: "bool",
internalType: "bool",
},
Expand Down Expand Up @@ -932,7 +932,7 @@ export const MultisigPluginAbi = [
},
{
type: "error",
name: "InvalidGasValues",
name: "InvalidAddress",
inputs: [],
},
{
Expand All @@ -945,6 +945,11 @@ export const MultisigPluginAbi = [
name: "InvalidMaxPriorityFeePerGas",
inputs: [],
},
{
type: "error",
name: "InvalidNumSigsOnActualGas",
inputs: [],
},
{
type: "error",
name: "InvalidOwner",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export const MultisigModularAccountFactoryAbi = [
},
{
name: "threshold",
type: "uint256",
internalType: "uint256",
type: "uint128",
internalType: "uint128",
},
],
outputs: [
Expand Down
6 changes: 5 additions & 1 deletion packages/accounts/src/msca/account/multisigAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export const MULTISIG_ACCOUNT_SOURCE = "MultisigModularAccount";

export type MultisigModularAccount<
TSigner extends SmartAccountSigner = SmartAccountSigner
> = SmartContractAccountWithSigner<typeof MULTISIG_ACCOUNT_SOURCE, TSigner> & {
> = SmartContractAccountWithSigner<
typeof MULTISIG_ACCOUNT_SOURCE,
TSigner,
"0.6.0"
> & {
getLocalThreshold: () => bigint;
};

Expand Down
Loading

0 comments on commit 08cf8d8

Please sign in to comment.