Skip to content

Commit

Permalink
updated emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
janezpodhostnik committed Jul 17, 2024
1 parent d5d2e60 commit a2ed31f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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("a738c835be7196f62900595d186557ba56d5ee4221b0a108782967c5d1d110d7")
expectedStateCommitmentBytes, _ := hex.DecodeString("15c7913954539b323cfe9b2111b04b1011678f5d09630bc16c4171336470313d")
expectedStateCommitment, err := flow.ToStateCommitment(expectedStateCommitmentBytes)
require.NoError(t, err)

Expand Down
2 changes: 1 addition & 1 deletion insecure/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/libp2p/go-libp2p-pubsub v0.10.0
github.com/multiformats/go-multiaddr-dns v0.3.1
github.com/onflow/crypto v0.25.1
github.com/onflow/flow-go v0.36.1-0.20240715172335-192f26e669b0
github.com/onflow/flow-go v0.36.2-0.20240717162253-d5d2e606ef53
github.com/rs/zerolog v1.29.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
Expand Down
4 changes: 2 additions & 2 deletions integration/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ require (
github.com/onflow/crypto v0.25.1
github.com/onflow/flow-core-contracts/lib/go/contracts v1.3.0
github.com/onflow/flow-core-contracts/lib/go/templates v1.3.0
github.com/onflow/flow-emulator v1.0.0-preview.33.0.20240711234907-194767b6e42d
github.com/onflow/flow-go v0.36.1-0.20240715172335-192f26e669b0
github.com/onflow/flow-emulator v1.0.0-preview.33.0.20240717164304-42d16c9a9b9c
github.com/onflow/flow-go v0.36.2-0.20240717162253-d5d2e606ef53
github.com/onflow/flow-go-sdk v1.0.0-preview.41
github.com/onflow/flow-go/insecure v0.0.0-00010101000000-000000000000
github.com/onflow/flow/protobuf/go/flow v0.4.5
Expand Down
4 changes: 2 additions & 2 deletions integration/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2150,8 +2150,8 @@ github.com/onflow/flow-core-contracts/lib/go/contracts v1.3.0 h1:cq3RfBr9TnTSnsG
github.com/onflow/flow-core-contracts/lib/go/contracts v1.3.0/go.mod h1:u/mkP/B+PbV33tEG3qfkhhBlydSvAKxfLZSfB4lsJHg=
github.com/onflow/flow-core-contracts/lib/go/templates v1.3.0 h1:aMFJdB2CW+Dzm+AJ5QN6J1yWh+a0l2RxHN2/TtLaXUo=
github.com/onflow/flow-core-contracts/lib/go/templates v1.3.0/go.mod h1:NgbMOYnMh0GN48VsNKZuiwK7uyk38Wyo8jN9+C9QE30=
github.com/onflow/flow-emulator v1.0.0-preview.33.0.20240711234907-194767b6e42d h1:E0StAz5R2IwhZ20oJqJppm4wbVX9rqpmKrBVVlQNayI=
github.com/onflow/flow-emulator v1.0.0-preview.33.0.20240711234907-194767b6e42d/go.mod h1:HTWKW7kKcfZlX7fNbXEKpalBdnNyxboUUEM1dxreZCc=
github.com/onflow/flow-emulator v1.0.0-preview.33.0.20240717164304-42d16c9a9b9c h1:suGkM9f+EOYYbkAL+fmygg9hTZ1FhuOqHzuvmyXMhuQ=
github.com/onflow/flow-emulator v1.0.0-preview.33.0.20240717164304-42d16c9a9b9c/go.mod h1:0c5HbKiPHDnMVkjMjoF8B0fLCdyGkXrWSheSnH8+hVY=
github.com/onflow/flow-ft/lib/go/contracts v1.0.0 h1:mToacZ5NWqtlWwk/7RgIl/jeKB/Sy/tIXdw90yKHcV0=
github.com/onflow/flow-ft/lib/go/contracts v1.0.0/go.mod h1:PwsL8fC81cjnUnTfmyL/HOIyHnyaw/JA474Wfj2tl6A=
github.com/onflow/flow-ft/lib/go/templates v1.0.0 h1:6cMS/lUJJ17HjKBfMO/eh0GGvnpElPgBXx7h5aoWJhs=
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 = "84ff0ef1d33db21e3520f1db78e4a676146c92f8300298320f9a186735074035"
const GenesisStateCommitmentHex = "19b050175a103ce5d9cd642ae2b91dcdf5c778b89f3a096e443383e16eabaf1b"

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 "48a9f343a11898d75abe8875f31136f1f892f193abf3f4ac6c92a39211844f2c"
return "759ddc47d454ad56f0c2d836456ca09d2b2044e0fe0020bf4c0b3c2b77e37b6b"
}
if chainID == flow.Sandboxnet {
return "e1c08b17f9e5896f03fe28dd37ca396c19b26628161506924fbf785834646ea1"
}
return "4322de872268ac2188e55d2649bb65736f6bbb143bd010348f87df72afa50380"
return "35e2092d5de9fa8405000f84579dab9ee885fefb881b961276dfd8ee70b256a6"
}

0 comments on commit a2ed31f

Please sign in to comment.