From 591cc01d3d391b4e71714cefae8cf2accaff81ab Mon Sep 17 00:00:00 2001 From: crypto-matto Date: Tue, 4 Jun 2024 16:39:27 +0800 Subject: [PATCH] feat: upgrade web3 --- lib/src/utils/address.ts | 3 ++- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/src/utils/address.ts b/lib/src/utils/address.ts index 636fba70..46b496db 100644 --- a/lib/src/utils/address.ts +++ b/lib/src/utils/address.ts @@ -1,5 +1,6 @@ import bech32 from 'bech32'; -import { isAddress, stripHexPrefix } from 'web3-utils'; +import { isAddress } from 'web3-validator'; +import { stripHexPrefix } from 'web3-eth-accounts'; import { Network } from '../network/network'; import { Bytes } from './bytes/bytes'; // import { toBase64 } from '@cosmjs/encoding'; diff --git a/package.json b/package.json index 812e9bd2..51d49ac1 100644 --- a/package.json +++ b/package.json @@ -67,8 +67,10 @@ "randombytes": "2.1.0", "secp256k1": "4.0.2", "snakecase-keys": "3.2.1", - "web3": "1.5.2", - "web3-utils": "1.5.2" + "web3": "4.0.1", + "web3-eth-accounts": "4.0.1", + "web3-utils": "4.0.1", + "web3-validator": "2.0.6" }, "devDependencies": { "@types/bech32": "1.1.2",