Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit fcd3f87

Browse files
authored
Merge pull request #324 from blocto/hotfix/fix-requestAccounts
Release: Merge to publish new version to npm
2 parents 3b0ed8c + 9514174 commit fcd3f87

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

packages/blocto-sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @blocto/sdk
22

3+
## 0.7.2
4+
5+
### Patch Changes
6+
7+
- 3baa074: add missing break statement
8+
39
## 0.7.1
410

511
### Patch Changes

packages/blocto-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blocto/sdk",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"repository": "git@github.com:portto/blocto-sdk.git",
55
"author": "Chiaki.C",
66
"license": "MIT",

packages/blocto-sdk/src/providers/ethereum.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ export default class EthereumProvider
373373
let result = null;
374374

375375
switch (payload.method) {
376-
case 'eth_requestAccounts':
377-
await this.fetchAccounts();
376+
case 'eth_requestAccounts': {
377+
result = await this.fetchAccounts();
378+
break;
379+
}
378380
// eslint-disable-next-line
379381
case 'eth_coinbase': {
380382
result = getEvmAddress(sessionKey, blockchainName)?.[0];

0 commit comments

Comments
 (0)