Skip to content

Commit 5baa47d

Browse files
committed
adjust state commitments
1 parent c468032 commit 5baa47d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

engine/execution/state/bootstrap/bootstrap_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestBootstrapLedger(t *testing.T) {
5858

5959
func TestBootstrapLedger_ZeroTokenSupply(t *testing.T) {
6060
expectedStateCommitmentBytes, _ := hex.DecodeString(
61-
"4c71561153301a0dea2e6cc74255ff6473b5ef4b66c7701bbcf8358249ce2048",
61+
"114c3c6747c0ecdb6f1aaba9278e261e2883d40c0ec917aacc53a6bfaca4c28f",
6262
)
6363
expectedStateCommitment, err := flow.ToStateCommitment(expectedStateCommitmentBytes)
6464
require.NoError(t, err)
@@ -107,7 +107,7 @@ func TestBootstrapLedger_ZeroTokenSupply(t *testing.T) {
107107
// This tests that the state commitment has not changed for the bookkeeping parts of the transaction.
108108
func TestBootstrapLedger_EmptyTransaction(t *testing.T) {
109109
expectedStateCommitmentBytes, _ := hex.DecodeString(
110-
"def8795537883765992fda2ef6aafd6b0448bd0cf514f551ee7e7803cd13d11f",
110+
"26c1eb39af9ba9708b49d1149d9fb7ee2a5ab870793c67da0b4bd7c48f0cca33",
111111
)
112112
expectedStateCommitment, err := flow.ToStateCommitment(expectedStateCommitmentBytes)
113113
require.NoError(t, err)

utils/unittest/execution_state.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ServiceAccountPrivateKeySignAlgo = crypto.ECDSAP256
2323
const ServiceAccountPrivateKeyHashAlgo = hash.SHA2_256
2424

2525
// Pre-calculated state commitment with root account with the above private key
26-
const GenesisStateCommitmentHex = "8067eed3686a4193222fd59091aab352f5aba345013425f125b01566ffa8af49"
26+
const GenesisStateCommitmentHex = "8a96fa1630db32bafd997262ddf5baf10cbc7745b6bc4f544970fcbc4675c6cd"
2727

2828
var GenesisStateCommitment flow.StateCommitment
2929

@@ -87,10 +87,10 @@ func genesisCommitHexByChainID(chainID flow.ChainID) string {
8787
return GenesisStateCommitmentHex
8888
}
8989
if chainID == flow.Testnet {
90-
return "deae6a293742711f720dfaa04daefac686e21055d98fe4bfc110376cbc53b817"
90+
return "f5ba39ea58aa8cd335d221d8e12083430a6a39f541ef34cb5a874f1af172f1b3"
9191
}
9292
if chainID == flow.Sandboxnet {
9393
return "e1c08b17f9e5896f03fe28dd37ca396c19b26628161506924fbf785834646ea1"
9494
}
95-
return "7b1ba932c47835fab32271f47be7de2b0dac5155ef111ae4adeb0df9adf26c2a"
95+
return "a6005c6798453f229a5ecaeb2205dc7dfa118535cd86ddbd8130a48fc70c651d"
9696
}

0 commit comments

Comments
 (0)