Skip to content

Commit

Permalink
Rename errorAdaptor to checkType
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <[email protected]>
  • Loading branch information
palas and carbolymer committed Sep 25, 2024
1 parent 7cd0239 commit 9aae3ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,16 +524,16 @@ carryHashChecks
-> AnchorDataTypeCheck
-- ^ The type of anchor data to check (for error reporting purpouses)
-> ExceptT GovernanceActionsError IO ()
carryHashChecks checkHash anchor errorAdaptor =
carryHashChecks checkHash anchor checkType =
case checkHash of
CheckHash -> do
anchorData <-
L.AnchorData
<$> fetchURLErrorToGovernanceActionError
errorAdaptor
checkType
(getByteStringFromURL httpsAndIpfsSchemas $ L.anchorUrl anchor)
let hash = L.hashAnchorData anchorData
when (hash /= L.anchorDataHash anchor) $
left $
GovernanceActionsProposalMismatchedHashError errorAdaptor (L.anchorDataHash anchor) hash
GovernanceActionsProposalMismatchedHashError checkType (L.anchorDataHash anchor) hash
TrustHash -> pure ()

0 comments on commit 9aae3ce

Please sign in to comment.