Skip to content

Commit

Permalink
fix: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jul 16, 2024
1 parent ffb6902 commit ceb283d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/parse_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (s *suite) newProofMsgUpdateParams(params paramsMap) cosmostypes.Msg {
for paramName, paramValue := range params {
switch paramName {
case prooftypes.ParamRelayDifficultyTargetHash:
msgUpdateParams.Params.MinRelayDifficultyBits = uint64(paramValue.value.(int64))
msgUpdateParams.Params.RelayDifficultyTargetHash = paramValue.value.([]byte)
case prooftypes.ParamProofRequestProbability:
msgUpdateParams.Params.ProofRequestProbability = paramValue.value.(float32)
case prooftypes.ParamProofRequirementThreshold:
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/update_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (s *suite) assertExpectedModuleParamsUpdated(moduleName string) {

minRelayDifficultyBits, ok := paramsMap[prooftypes.ParamRelayDifficultyTargetHash]
if ok {
params.MinRelayDifficultyBits = uint64(minRelayDifficultyBits.value.(int64))
params.RelayDifficultyTargetHash = minRelayDifficultyBits.value.([]byte)
}

proofRequestProbability, ok := paramsMap[prooftypes.ParamProofRequestProbability]
Expand Down

0 comments on commit ceb283d

Please sign in to comment.