diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 0663b74..22d191d 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "git+https://github.com/MetaMask/snap-account-abstraction-keyring.git" }, "source": { - "shasum": "I2n6C/a7RKpixg1io43LlbJemg8v3akKZZ0wSDBdlKw=", + "shasum": "Luzyj8okKjEMwhuIKOjOWr/EauxOZj2b6odSgBJuuBA=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/snap/src/keyring.test.ts b/packages/snap/src/keyring.test.ts index ee8ca39..2504f06 100644 --- a/packages/snap/src/keyring.test.ts +++ b/packages/snap/src/keyring.test.ts @@ -806,7 +806,7 @@ describe('Keyring', () => { account: mockAccountId, request: { method: InternalMethod.SetConfig, - params: [mockConfig], + params: mockConfig, }, }; diff --git a/packages/snap/src/keyring.ts b/packages/snap/src/keyring.ts index 299fdc7..d3f1bfc 100644 --- a/packages/snap/src/keyring.ts +++ b/packages/snap/src/keyring.ts @@ -330,7 +330,7 @@ export class AccountAbstractionKeyring implements Keyring { case InternalMethod.SetConfig: { return { pending: false, - result: await this.setConfig((params as [ChainConfig])[0]), + result: await this.setConfig(params as ChainConfig), }; } default: {