Skip to content

Commit

Permalink
chore: updates canary
Browse files Browse the repository at this point in the history
  • Loading branch information
Gancho Radkov committed Mar 20, 2024
1 parent 70d48e1 commit c312e42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@json-rpc-tools/utils": "1.7.6",
"@nextui-org/react": "1.0.0-beta.12",
"@walletconnect/core": "2.11.2",
"@walletconnect/se-sdk": "1.7.0-canary-59e3831",
"@walletconnect/se-sdk": "1.7.0-canary-82cf156-1",
"@walletconnect/utils": "2.11.2",
"ethers": "5.7.2",
"framer-motion": "9.0.2",
Expand Down
8 changes: 4 additions & 4 deletions examples/wallet/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2066,10 +2066,10 @@
dependencies:
tslib "1.14.1"

"@walletconnect/[email protected]59e3831":
version "1.7.0-canary-59e3831"
resolved "https://registry.yarnpkg.com/@walletconnect/se-sdk/-/se-sdk-1.7.0-canary-59e3831.tgz#805ec7ef15d3660214ccaadc93bcf7c8c0e65f6f"
integrity sha512-xE942ayz93hG5/a6eRsVsfSTdeoqUXrHLHIhBkBNdWLU7AEmwe+8cVV7mRhKxWJRz5AmQXqFCfNwqQR9/m0Mdg==
"@walletconnect/[email protected]82cf156-1":
version "1.7.0-canary-82cf156-1"
resolved "https://registry.yarnpkg.com/@walletconnect/se-sdk/-/se-sdk-1.7.0-canary-82cf156-1.tgz#e8b52b29d1f32a55e9d21bf13ff6441cc9b771ea"
integrity sha512-3DMq5hUdIh68u9KeUEenDwkTDm4Kif2B2qscNlqqo0bp/6bM0tSlwM6XwtOgty3VOysUHhhSE4G+lJafs1TagA==
dependencies:
"@walletconnect/web3wallet" "1.10.2"

Expand Down
4 changes: 4 additions & 0 deletions src/controllers/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export class Engine extends ISingleEthereumEngine {

public updateSession: ISingleEthereumEngine["updateSession"] = async (params) => {
const { topic, chainId, accounts } = params;
if (chainId < 1) {
// eslint-disable-next-line no-console
return console.error("se-sdk, updateSession Invalid chainId", chainId);
}
const session = this.web3wallet.engine.signClient.session.get(topic);
const formattedChain = prefixChainWithNamespace(chainId);
const formattedAccounts = formatAccounts(accounts, chainId);
Expand Down

0 comments on commit c312e42

Please sign in to comment.