Skip to content

Commit

Permalink
Add 4.9.3. Proxy Bytecode Hash (#3115)
Browse files Browse the repository at this point in the history
### Description

In #2899 we
upgraded to OZ 4.9.3 which changed the bytecode of proxy. This change
adds another constant as a valid proxy bytecode.
  • Loading branch information
nambrot authored Jan 3, 2024
1 parent cf48496 commit 565a5e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions typescript/sdk/src/consts/bytecode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export enum BytecodeHash {
V3_MAILBOX_BYTECODE_HASH = '0x6e853444a6e38bb1d7ac7608b92a70cee83153c891c70ed882b2432134bb23a0', // without optimizer
OPT_V3_MAILBOX_BYTECODE_HASH = '0x7cc944e10fa5597f10265bdac4a808e705711451ee7f117ebf9a97193b796136', // with optimizer
TRANSPARENT_PROXY_BYTECODE_HASH = '0x320bda003dfa31828115be5c01b9f3e7eecaf2532afdb89d2b53559f2e7ab86d',
TRANSPARENT_PROXY_4_9_3_BYTECODE_HASH = '0xae0fb63adc64a29562a3337ed10b8772f89d5241bc3d8f0a82e9462d421e5e4b', // OZ 4.9.3
PROXY_ADMIN_BYTECODE_HASH = '0x13855ae57da3aadecb9259cecece16e1f434b8850fe95531f422e4e262f3f200', // without optimizer
OPT_PROXY_ADMIN_BYTECODE_HASH = '0x30aa3b1506a94c0fe2749af099851623685d9a24a65e2e8b3746c272499979d1', // with optimizer
V2_PROXY_ADMIN_BYTECODE_HASH = '0x7c378e9d49408861ca754fe684b9f7d1ea525bddf095ee0463902df701453ba0', // reused from v2
Expand Down
1 change: 1 addition & 0 deletions typescript/sdk/src/core/HyperlaneCoreChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export class HyperlaneCoreChecker extends HyperlaneAppChecker<
[
BytecodeHash.TRANSPARENT_PROXY_BYTECODE_HASH,
BytecodeHash.OPT_PROXY_ADMIN_BYTECODE_HASH,
BytecodeHash.TRANSPARENT_PROXY_4_9_3_BYTECODE_HASH,
],
);
await this.checkBytecode(
Expand Down

0 comments on commit 565a5e1

Please sign in to comment.