Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot b1c33bb81d chore(release): 0.1.0-develop.39 [skip ci]
# [0.1.0-develop.39](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.38...v0.1.0-develop.39) (2023-07-13)

### Bug Fixes

* compare code against codehash ([dc4c6b3](dc4c6b3f36))
2023-07-13 17:18:26 +00:00
Derrick Hammer 8aa7c11f09
Merge remote-tracking branch 'origin/develop' into develop 2023-07-13 13:17:33 -04:00
Derrick Hammer dc4c6b3f36
fix: compare code against codehash 2023-07-13 13:17:27 -04:00
4 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.39](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.38...v0.1.0-develop.39) (2023-07-13)
### Bug Fixes
* compare code against codehash ([dc4c6b3](https://git.lumeweb.com/LumeWeb/libethsync/commit/dc4c6b3f3635a60ebc6e1a7be9811ff5ada9df66))
# [0.1.0-develop.38](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.37...v0.1.0-develop.38) (2023-07-13)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libethclient",
"version": "0.1.0-develop.38",
"version": "0.1.0-develop.39",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libethclient",
"version": "0.1.0-develop.38",
"version": "0.1.0-develop.39",
"dependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/bls": "7.1.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.38",
"version": "0.1.0-develop.39",
"type": "module",
"repository": {
"type": "git",

View File

@ -640,10 +640,7 @@ export default class VerifyingProvider implements IClientVerifyingProvider {
private verifyCodeHash(code: Bytes, codeHash: Bytes32): boolean {
return (
(code === "0x" && codeHash === "0x" + KECCAK256_NULL_S) ||
byteArrayEquals(
keccak256(fromHexString(codeHash)),
fromHexString(codeHash),
)
byteArrayEquals(keccak256(fromHexString(code)), fromHexString(codeHash))
);
}