diff --git a/package.json b/package.json index 065f8f8..2dd0292 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,9 @@ "test:one": "zcloak-dev-run-test --runInBand", "test:watch": "zcloak-dev-run-test --watch" }, + "dependencies": { + "web3": "^4.1.1" + }, "devDependencies": { "@types/jest": "^29.4.0", "@zcloak/dev": "^0.31.0", @@ -43,8 +46,5 @@ }, "resolutions": { "typescript": "^5.0.4" - }, - "dependencies": { - "web3": "^4.1.1" } } diff --git a/protocol/vc/src/utils.ts b/protocol/vc/src/utils.ts index 436d465..4e9cebb 100644 --- a/protocol/vc/src/utils.ts +++ b/protocol/vc/src/utils.ts @@ -18,7 +18,7 @@ import { rlpEncode as rlpEncodeFn } from '@zcloak/crypto'; import { HASHER } from './hasher'; // Local mode -const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545')); +const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545')) as any; export function rlpEncode(input: NativeType | NativeTypeWithOutNull[], hashType: HashType): Uint8Array { const result = rlpEncodeFn(input);