F
Flow14mo ago
joshua

joshua | Flow (2024-01-09)

I updated my go dependencies to the latest stable cadence dependencies in the flow-nft repo:
github.com/onflow/cadence v1.0.0-preview.1.0.20231213191345-0ff20e15e7e1
github.com/onflow/flow-emulator v0.59.1-0.20231218185945-9116c416533f
github.com/onflow/flow-go-sdk v0.44.0-stable-cadence.2
github.com/onflow/cadence v1.0.0-preview.1.0.20231213191345-0ff20e15e7e1
github.com/onflow/flow-emulator v0.59.1-0.20231218185945-9116c416533f
github.com/onflow/flow-go-sdk v0.44.0-stable-cadence.2
but I'm getting an error when I try to run the tests that I'm not getting in the flow-core-contracts repo with the same dependencies:
/opt/homebrew/opt/[email protected]/bin/pkg/mod/github.com/onflow/[email protected]/fvm/systemcontracts/system_contracts.go:148:3: unknown field RandomBeaconHistoryAddress in struct literal of type templates.Environment
/opt/homebrew/opt/[email protected]/bin/pkg/mod/github.com/onflow/[email protected]/fvm/systemcontracts/system_contracts.go:148:3: unknown field RandomBeaconHistoryAddress in struct literal of type templates.Environment
Not sure what is going on. Anyone have any ideas?
5 Replies
Needle
Needle14mo ago
I've created a thread for your message. Please continue any relevant discussion in this thread. You can rename this thread using /title <new title> If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadence
joshua
joshuaOP14mo ago
This is happening in the emulator bootstrapping before the tests even start templates.Environment is a type from flow-core-contracts/lib/go/templates package that flow-go imports not sure why it would happen in the flow-nft tests but not the flow-core-contracts tests
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
joshua
joshuaOP14mo ago
looks like your strategy of deleting go.sum and resetting everything worked! so far at least...... thank you!
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?