Skip to content

Commit

Permalink
Updated the max query payment to be 5 Hbar so the queries don't fail (#…
Browse files Browse the repository at this point in the history
…434)

Signed-off-by: Himalayan Dev <[email protected]>
  • Loading branch information
himalayan-dev authored Jun 10, 2024
1 parent 6ceb014 commit ea8b3dd
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/hedera-wallet-snap/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/hedera-wallet-snap/packages/site/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -77,4 +77,4 @@
"rimraf": "^5.0.7",
"typescript": "^5.4.5"
}
}
}
12 changes: 12 additions & 0 deletions packages/hedera-wallet-snap/packages/snap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/hedera-wallet-snap/packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/hedera-wallet-snap/packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"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": {
"type": "git",
"url": "git+https://github.com/hashgraph/hedera-metamask-snaps.git"
},
"source": {
"shasum": "56VFS1uG3hD53/dhUSY4LhozdOygpIRlNuY3WGPxtd0=",
"shasum": "crQvWM3aqBMDaj5xAgCaPXGkkw3z39UepsSy7UK+KqY=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea8b3dd

Please sign in to comment.