From 56eeb9714385ce4985b0300be97eb37508d45ee0 Mon Sep 17 00:00:00 2001 From: Ardit Marku Date: Sun, 29 Dec 2024 14:04:26 +0200 Subject: [PATCH] Update state commitment expected values --- engine/execution/state/bootstrap/bootstrap_test.go | 2 +- utils/unittest/execution_state.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/execution/state/bootstrap/bootstrap_test.go b/engine/execution/state/bootstrap/bootstrap_test.go index 5a9d394a5ac..c40d8ab9d69 100644 --- a/engine/execution/state/bootstrap/bootstrap_test.go +++ b/engine/execution/state/bootstrap/bootstrap_test.go @@ -53,7 +53,7 @@ func TestBootstrapLedger(t *testing.T) { } func TestBootstrapLedger_ZeroTokenSupply(t *testing.T) { - expectedStateCommitmentBytes, _ := hex.DecodeString("6e70a1ff40e4312a547d588a4355a538610bc22844a1faa907b4ec333ff1eca9") + expectedStateCommitmentBytes, _ := hex.DecodeString("9a76745fc1e235d699d21019d7e20ef479fc772b382b34bcbe49b298c4ae0b4f") expectedStateCommitment, err := flow.ToStateCommitment(expectedStateCommitmentBytes) require.NoError(t, err) diff --git a/utils/unittest/execution_state.go b/utils/unittest/execution_state.go index a5e911b3771..61e9f5ec15d 100644 --- a/utils/unittest/execution_state.go +++ b/utils/unittest/execution_state.go @@ -23,7 +23,7 @@ const ServiceAccountPrivateKeySignAlgo = crypto.ECDSAP256 const ServiceAccountPrivateKeyHashAlgo = hash.SHA2_256 // Pre-calculated state commitment with root account with the above private key -const GenesisStateCommitmentHex = "c42fc978c2702793d2640e3ed8644ba54db4e92aa5d0501234dfbb9bbc5784fd" +const GenesisStateCommitmentHex = "82eff94a3b64e963e2c01d4d7351d6a3cea64c92e1531a65385e7f49fcd20135" var GenesisStateCommitment flow.StateCommitment @@ -87,10 +87,10 @@ func genesisCommitHexByChainID(chainID flow.ChainID) string { return GenesisStateCommitmentHex } if chainID == flow.Testnet { - return "e29456decb9ee90ad3ed1e1239383c18897b031ea851ff07f5f616657df4d4a0" + return "f98ad50e6ac76379fd612bb74a7915b801593d34f83ed22df1a77813170c1c75" } if chainID == flow.Sandboxnet { return "e1c08b17f9e5896f03fe28dd37ca396c19b26628161506924fbf785834646ea1" } - return "e1989abf50fba23015251a313eefe2ceff45639a75252f4da5970dcda32dd95e" + return "b114d287a8ccbb3db5b1cb19742c311c3cd47a4f87a275e64a7755347b2c5003" }