Skip to content

Commit

Permalink
Fix: fix web3 import
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanxuu committed Sep 5, 2023
1 parent a3263b2 commit bd05b50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -43,8 +46,5 @@
},
"resolutions": {
"typescript": "^5.0.4"
},
"dependencies": {
"web3": "^4.1.1"
}
}
2 changes: 1 addition & 1 deletion protocol/vc/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd05b50

Please sign in to comment.