From 9134d63e2328904552628400bd6c8694813aa246 Mon Sep 17 00:00:00 2001 From: Peterjah Date: Thu, 14 Nov 2024 21:13:49 +0100 Subject: [PATCH] update massa-web3 --- package-lock.json | 45 ++++++++++++++----- package.json | 4 +- .../hooks/useWriteSmartContract.tsx | 1 - 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 083f1554..ddff55bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,8 @@ "version": "1.0.0", "dependencies": { "@headlessui/react": "^1.7.15", - "@massalabs/massa-web3": "^5.0.0", - "@massalabs/wallet-provider": "^3.0.0", + "@massalabs/massa-web3": "^5.0.1-dev", + "@massalabs/wallet-provider": "^3.0.1-dev", "copy-to-clipboard": "^3.3.3", "currency.js": "^2.0.4", "dot-object": "^2.1.5", @@ -3936,9 +3936,9 @@ } }, "node_modules/@massalabs/massa-web3": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@massalabs/massa-web3/-/massa-web3-5.0.0.tgz", - "integrity": "sha512-O7aU61WYSJrv6+uQLJZzicv9f3XoKHMUzfibVDprU0LzaZejaHBRnpbiERJs6m3k4UHWBLYGpoW++lhRRspPkw==", + "version": "5.0.1-dev.20241113122359", + "resolved": "https://registry.npmjs.org/@massalabs/massa-web3/-/massa-web3-5.0.1-dev.20241113122359.tgz", + "integrity": "sha512-+MgTl+Ul2FB8CDPlzl8/li4DO/5JRa83BMnKqItIb9ftHu4UjqNVKz1VDYVXaww6BWwMdUylNfvpzZOpWFaB6Q==", "license": "MIT", "dependencies": { "@noble/ed25519": "^1.7.3", @@ -3967,19 +3967,44 @@ } }, "node_modules/@massalabs/wallet-provider": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@massalabs/wallet-provider/-/wallet-provider-3.0.0.tgz", - "integrity": "sha512-PPLdOHiFholf4MOUWxvhhkMtxK2HBbcvmk4rg2VA5cGSP2GoQ+EtVkXZGI0r8gdmJXpmedEBi7yJAg/G67pvVA==", + "version": "3.0.1-dev.20241113140534", + "resolved": "https://registry.npmjs.org/@massalabs/wallet-provider/-/wallet-provider-3.0.1-dev.20241113140534.tgz", + "integrity": "sha512-z0TH0ThS38YhwxTF3eHmGLs93caUnYiilcu+b8FAWMX1V4gPePXVTqLRTR9lY1YcY3Er4tYc6A/lofwxh0p+9g==", "license": "(MIT AND Apache-2.0)", "dependencies": { "@hicaru/bearby.js": "^0.5.9", - "@massalabs/massa-web3": "^5.0.0", + "@massalabs/massa-web3": "^5.0.1-dev", "axios": "^0.28.0", "bs58check": "^4.0.0", + "buffer": "^6.0.3", "eventemitter3": "^5.0.1", "lodash.isequal": "^4.5.0" } }, + "node_modules/@massalabs/wallet-provider/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "node_modules/@mdx-js/react": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-2.3.0.tgz", @@ -9476,7 +9501,6 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, "funding": [ { "type": "github", @@ -13685,7 +13709,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, "funding": [ { "type": "github", diff --git a/package.json b/package.json index f81da625..cc0a00ca 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ }, "dependencies": { "@headlessui/react": "^1.7.15", - "@massalabs/massa-web3": "^5.0.0", - "@massalabs/wallet-provider": "^3.0.0", + "@massalabs/massa-web3": "^5.0.1-dev", + "@massalabs/wallet-provider": "^3.0.1-dev", "copy-to-clipboard": "^3.3.3", "currency.js": "^2.0.4", "dot-object": "^2.1.5", diff --git a/src/lib/massa-react/hooks/useWriteSmartContract.tsx b/src/lib/massa-react/hooks/useWriteSmartContract.tsx index a2020f12..d86911c7 100644 --- a/src/lib/massa-react/hooks/useWriteSmartContract.tsx +++ b/src/lib/massa-react/hooks/useWriteSmartContract.tsx @@ -42,7 +42,6 @@ export function useWriteSmartContract(account: Provider, isMainnet = false) { const operation = await account.callSC({ func: targetFunction, target: targetAddress, - caller: account.address, parameter, coins, fee,