Skip to content

Commit

Permalink
fix: undefined param for chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
montelaidev committed Apr 8, 2024
1 parent 1acb30c commit d81eb6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/keyring.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ describe('Keyring', () => {
account: mockAccountId,
request: {
method: InternalMethod.SetConfig,
params: [mockConfig],
params: mockConfig,
},
};

Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit d81eb6f

Please sign in to comment.