Skip to content

Commit

Permalink
undo bops
Browse files Browse the repository at this point in the history
  • Loading branch information
dawsbot committed Feb 12, 2024
1 parent 6c4fe38 commit c66a997
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 48 deletions.
44 changes: 0 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
"@noble/secp256k1": "^1.5.5",
"@types/big.js": "^6.1.6",
"big.js": "^6.2.1",
"bops": "^1.0.1",
"isomorphic-unfetch": "^3.1.0",
"sha3": "^2.1.4"
},
Expand Down
1 change: 0 additions & 1 deletion src/types/bops.d.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/utils/solidity-keccak256.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { from } from 'bops';
import { hexFalse } from '../classes/utils/encode-decode-transaction';
import { logger } from '../logger/logger';
import { tinyBig } from '../shared/tiny-big/tiny-big';
Expand Down Expand Up @@ -27,7 +26,7 @@ function _pack(type: string, value: any, isArray?: boolean): Uint8Array {
}
return arrayify(value);
case 'string':
return from(value);
return Buffer.from(value);
case 'bytes':
return arrayify(value);
case 'bool':
Expand Down

0 comments on commit c66a997

Please sign in to comment.