Skip to content

Commit 1e70d33

Browse files
committed
Fix starknet sender root-hashingFunction mismatch
1 parent 0171c5a commit 1e70d33

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

deployed_satellites.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"contractAddress": "0xc9854fd6034fbc41B65b454919a48a5a9b342fa8"
2626
},
2727
{
28-
"chainId": "0x534e5f5345504f4c4941",
29-
"contractAddress": "0x032d260a653bd1ee1c07b33b770aa32c7ab9fabde8bd74b47cc0ef4e5e472792"
28+
"chainId": "393402133025997798000961",
29+
"contractAddress": "0x06d523b16d7f6f71e250fc7f8d95df3e9e987a120878ea1a25ff312d92f42c8e"
3030
}
3131
],
3232
"connections": [
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"from": "11155111",
55-
"to": "0x534e5f5345504f4c4941"
55+
"to": "393402133025997798000961"
5656
}
5757
]
5858
}

settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"SHARP_FACT_REGISTRY": "0x0ed8c44415e882F3033B4F3AFF916BbB4997f915",
55
"STARKNET_CORE": "0xE2Bb56ee936fd6433DC0F6e7e3b8365C906AA057",
66
"DATA_PROCESSOR_FACTS_REGISTRY": "0x0000000000000000000000000000000000000000",
7-
"STARKNET_CHAIN_ID": "0x534e5f5345504f4c4941",
7+
"STARKNET_CHAIN_ID": "393402133025997798000961",
88

99
"connections": [
1010
{
@@ -32,7 +32,7 @@
3232
"L2Alias": "0x0"
3333
},
3434
{
35-
"to": "0x534e5f5345504f4c4941",
35+
"to": "393402133025997798000961",
3636
"inboxContract": "0xE2Bb56ee936fd6433DC0F6e7e3b8365C906AA057",
3737
"sendFunction": "sendMessageL1ToStarknet",
3838
"L2Alias": "0x0"
@@ -72,7 +72,7 @@
7272

7373
"connections": []
7474
},
75-
"0x534e5f5345504f4c4941": {
75+
"393402133025997798000961": {
7676
"network": "starknetSepolia",
7777

7878
"connections": []

src/modules/messaging/sender/L1ToStarknetSenderModule.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ contract L1ToStarknetSenderModule is IL1ToStarknetSenderModule, AccessController
6060
starknetData[pos++] = rootsForHashingFunctions.length;
6161

6262
for (uint256 i = 0; i < rootsForHashingFunctions.length; i++) {
63-
(uint256 hashingFunctionLow, uint256 hashingFunctionHigh) = uint256(rootsForHashingFunctions[i].hashingFunction).split128();
64-
starknetData[pos++] = hashingFunctionLow;
65-
starknetData[pos++] = hashingFunctionHigh;
66-
6763
(uint256 rootLow, uint256 rootHigh) = uint256(rootsForHashingFunctions[i].root).split128();
6864
starknetData[pos++] = rootLow;
6965
starknetData[pos++] = rootHigh;
66+
67+
(uint256 hashingFunctionLow, uint256 hashingFunctionHigh) = uint256(rootsForHashingFunctions[i].hashingFunction).split128();
68+
starknetData[pos++] = hashingFunctionLow;
69+
starknetData[pos++] = hashingFunctionHigh;
7070
}
7171

7272
(uint256 mmrSizeLow, uint256 mmrSizeHigh) = mmrSize.split128();

0 commit comments

Comments
 (0)