Skip to content

Commit

Permalink
Fix web3-utils import (#497)
Browse files Browse the repository at this point in the history
* Fix web3-utils import

* Update massa-web3 to 2.2.3
  • Loading branch information
Ben-Rey authored Nov 16, 2023
1 parent 9c29551 commit 75e56dc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 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 packages/massa-web3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@massalabs/massa-web3",
"version": "2.2.2",
"version": "2.2.3",
"description": "massa's web3 sdk client",
"main": "dist/cmd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 0 additions & 2 deletions packages/massa-web3/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export * as bytes from './bytes';

export * as converters from '@massalabs/web3-utils/src/converters';

export * as keyAndAddresses from './keyAndAddresses';

export * as time from './time';
Expand Down
2 changes: 1 addition & 1 deletion packages/massa-web3/src/web3/SmartContractsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { IOperationData } from '../interfaces/IOperationData';
import { IReadData } from '../interfaces/IReadData';
import { ISmartContractsClient } from '../interfaces/ISmartContractsClient';
import { JSON_RPC_REQUEST_METHOD } from '../interfaces/JsonRpcMethods';
import { fromMAS } from '@massalabs/web3-utils/src/converters';
import { trySafeExecute } from '../utils/retryExecuteFunction';
import { BaseClient } from './BaseClient';
import { PublicApiClient } from './PublicApiClient';
Expand All @@ -31,6 +30,7 @@ import {
IContractReadOperationData,
IEvent,
Args,
fromMAS,
MAX_GAS_CALL,
} from '@massalabs/web3-utils';
import { wait } from '../utils/time';
Expand Down
8 changes: 5 additions & 3 deletions packages/massa-web3/src/web3/WalletClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ import { IRollsData } from '../interfaces/IRollsData';
import { IBalance } from '../interfaces/IBalance';
import * as ed from '@noble/ed25519';
import { IWalletClient } from '../interfaces/IWalletClient';
import { fromMAS } from '@massalabs/web3-utils/src/converters';

import { Address, SecretKey, PublicKey } from '../utils/keyAndAddresses';
import { IBaseAccount } from '../interfaces/IBaseAccount';
import { Web3Account } from './accounts/Web3Account';
import { KEYS_VERSION_NUMBER, SECRET_KEY_PREFIX } from '@massalabs/web3-utils';
import {
KEYS_VERSION_NUMBER,
SECRET_KEY_PREFIX,
fromMAS,
} from '@massalabs/web3-utils';

const MAX_WALLET_ACCOUNTS = 256;

Expand Down

0 comments on commit 75e56dc

Please sign in to comment.