Skip to content

Commit

Permalink
fix state commitments
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Oct 21, 2024
1 parent ff332da commit c926d19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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("5f61be440dc0a72f4831ffc53b80d4ec5695940747be335cef8c2528b2501ae6")
expectedStateCommitmentBytes, _ := hex.DecodeString("edc0ffd7e797e2383bc68b694645e6b62b0d996498bcff9b492bf4d426798ec5")
expectedStateCommitment, err := flow.ToStateCommitment(expectedStateCommitmentBytes)
require.NoError(t, err)

Expand Down
10 changes: 3 additions & 7 deletions utils/unittest/execution_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ const ServiceAccountPrivateKeySignAlgo = crypto.ECDSAP256
const ServiceAccountPrivateKeyHashAlgo = hash.SHA2_256

// Pre-calculated state commitment with root account with the above private key
<<<<<<< HEAD
const GenesisStateCommitmentHex = "2b6dc29f4fa1e718add5e1ed1ff9198bbe29948ffa662d7d05c74468238a2206"
=======
const GenesisStateCommitmentHex = "0c3d69fb4995d2aead0c43b14d17ef2329e319854315ddaea722b9e2274b8575"
>>>>>>> 3300810ae3 (update core contracts deps to 1.3.2)
const GenesisStateCommitmentHex = "d2a7db1fa0cc1eee36e8769c11095fbaa440ab7916e5923afa10e760fd5eae2b"

var GenesisStateCommitment flow.StateCommitment

Expand Down Expand Up @@ -91,10 +87,10 @@ func genesisCommitHexByChainID(chainID flow.ChainID) string {
return GenesisStateCommitmentHex
}
if chainID == flow.Testnet {
return "8b49764587598a3d4772e353ed2401374760f7f12c5618fde36e206a983472ef"
return "719c12f8e28a40d822e43873d8a188daa7a3f81dc530c4c61f4141d76985bd46"
}
if chainID == flow.Sandboxnet {
return "e1c08b17f9e5896f03fe28dd37ca396c19b26628161506924fbf785834646ea1"
}
return "102c2b83d2bc61d090c3d0692e903146c580ac0f5222165b99ee4d281b6b1df9"
return "5efd4c97fa23bd76769ab891a2681a839f8bdd0a2be0e07ab841f51b2e3a2f51"
}

0 comments on commit c926d19

Please sign in to comment.