From ea8b3dd59337caecdd30bf6158aa1b4a3d8d17f5 Mon Sep 17 00:00:00 2001 From: Himalayan Dev <72465553+himalayan-dev@users.noreply.github.com> Date: Mon, 10 Jun 2024 12:33:35 -0400 Subject: [PATCH] Updated the max query payment to be 5 Hbar so the queries don't fail (#434) Signed-off-by: Himalayan Dev --- package-lock.json | 4 ++-- package.json | 2 +- packages/hedera-wallet-snap/package.json | 2 +- .../hedera-wallet-snap/packages/site/package.json | 4 ++-- .../hedera-wallet-snap/packages/snap/CHANGELOG.md | 12 ++++++++++++ .../hedera-wallet-snap/packages/snap/package.json | 2 +- .../packages/snap/snap.manifest.json | 4 ++-- .../snap/src/client/HederaClientImplFactory.ts | 4 +++- 8 files changed, 24 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8cdbee23..df24accd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hashgraph/hedera-metamask-snaps", - "version": "0.4.1", + "version": "0.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hashgraph/hedera-metamask-snaps", - "version": "0.4.1", + "version": "0.4.2", "license": "Apache-2.0", "devDependencies": { "husky": "^9.0.11", diff --git a/package.json b/package.json index 6b93a5be..1e43ea7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hashgraph/hedera-metamask-snaps", - "version": "0.4.1", + "version": "0.4.2", "description": "A collection of Hedera related Metamask snaps that expose and utilize Hedera functionality inside Metamask", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/packages/hedera-wallet-snap/package.json b/packages/hedera-wallet-snap/package.json index 8566cd7d..b1e0c069 100644 --- a/packages/hedera-wallet-snap/package.json +++ b/packages/hedera-wallet-snap/package.json @@ -1,6 +1,6 @@ { "name": "@hashgraph/hedera-wallet-snap-monorepo", - "version": "0.4.1", + "version": "0.4.2", "private": true, "description": "Hedera Wallet Snap unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay.", "homepage": "https://github.com/hashgraph/hedera-metamask-snaps#readme", diff --git a/packages/hedera-wallet-snap/packages/site/package.json b/packages/hedera-wallet-snap/packages/site/package.json index 67dc1418..0def2fce 100644 --- a/packages/hedera-wallet-snap/packages/site/package.json +++ b/packages/hedera-wallet-snap/packages/site/package.json @@ -1,6 +1,6 @@ { "name": "@hashgraph/hedera-wallet-snap-site", - "version": "0.4.1", + "version": "0.4.2", "private": true, "license": "Apache-2.0", "scripts": { @@ -77,4 +77,4 @@ "rimraf": "^5.0.7", "typescript": "^5.4.5" } -} +} \ No newline at end of file diff --git a/packages/hedera-wallet-snap/packages/snap/CHANGELOG.md b/packages/hedera-wallet-snap/packages/snap/CHANGELOG.md index 19354b54..8fddcdd0 100644 --- a/packages/hedera-wallet-snap/packages/snap/CHANGELOG.md +++ b/packages/hedera-wallet-snap/packages/snap/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.4.2](https://github.com/hashgraph/hedera-metamask-snaps/compare/v0.4.2...v0.4.2) (2024-06-10) + +### :page_with_curl: Documentation + +- Refer to the [Hedera Wallet Snap Wiki](https://docs.tuum.tech/hedera-wallet-snap/) for more info on how the snap works and how to integrate it into your own application. + +### :rocket: Features + +### :bug: Bug Fixes + +- Updated the max query payment to be 5 Hbar so the queries don't fail + ## [0.4.1](https://github.com/hashgraph/hedera-metamask-snaps/compare/v0.4.1...v0.4.1) (2024-05-30) ### :page_with_curl: Documentation diff --git a/packages/hedera-wallet-snap/packages/snap/package.json b/packages/hedera-wallet-snap/packages/snap/package.json index ec353db5..f3067dae 100644 --- a/packages/hedera-wallet-snap/packages/snap/package.json +++ b/packages/hedera-wallet-snap/packages/snap/package.json @@ -1,6 +1,6 @@ { "name": "@hashgraph/hedera-wallet-snap", - "version": "0.4.1", + "version": "0.4.2", "description": "Hedera Wallet Snap unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay.", "keywords": [ "MetaMask", diff --git a/packages/hedera-wallet-snap/packages/snap/snap.manifest.json b/packages/hedera-wallet-snap/packages/snap/snap.manifest.json index c02d4928..0c8a4341 100644 --- a/packages/hedera-wallet-snap/packages/snap/snap.manifest.json +++ b/packages/hedera-wallet-snap/packages/snap/snap.manifest.json @@ -1,5 +1,5 @@ { - "version": "0.4.1", + "version": "0.4.2", "description": "Hedera Wallet unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay.", "proposedName": "Hedera Wallet", "repository": { @@ -7,7 +7,7 @@ "url": "git+https://github.com/hashgraph/hedera-metamask-snaps.git" }, "source": { - "shasum": "56VFS1uG3hD53/dhUSY4LhozdOygpIRlNuY3WGPxtd0=", + "shasum": "crQvWM3aqBMDaj5xAgCaPXGkkw3z39UepsSy7UK+KqY=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/hedera-wallet-snap/packages/snap/src/client/HederaClientImplFactory.ts b/packages/hedera-wallet-snap/packages/snap/src/client/HederaClientImplFactory.ts index c18fc770..5f4e3dc0 100644 --- a/packages/hedera-wallet-snap/packages/snap/src/client/HederaClientImplFactory.ts +++ b/packages/hedera-wallet-snap/packages/snap/src/client/HederaClientImplFactory.ts @@ -111,7 +111,9 @@ export class HederaClientImplFactory implements HederaClientFactory { } // TODO: Fix - client.setOperatorWith(this.#accountId, publicKey ?? '', transactionSigner); + client + .setOperatorWith(this.#accountId, publicKey ?? '', transactionSigner) + .setDefaultMaxQueryPayment(new Hbar(5)); if (!(await this.testClientOperatorMatch(client))) { return null;