Skip to content

Commit

Permalink
Update state commitment expected values
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Dec 29, 2024
1 parent 011652f commit 56eeb97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion engine/execution/state/bootstrap/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions utils/unittest/execution_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
}

0 comments on commit 56eeb97

Please sign in to comment.