Skip to content

Commit

Permalink
Better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Dec 1, 2023
1 parent f2b75a0 commit 29861a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pact-core/Pact/Core/IR/Desugar.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1195,11 +1195,11 @@ renameModule (Module unmangled mgov defs blessed imports implements mhash i) = d
pure (defn':defns, S.insert (defName defn) s, m')

resolveGov mname = \case
KeyGov ksn -> case parseAnyKeysetName (_keysetName ksn) of
KeyGov rawKsn -> case parseAnyKeysetName (_keysetName rawKsn) of
Left {} -> lift $ throwExecutionError i (ModuleGovernanceFailure mname)
Right ksn' -> do
lift $ enforceKeysetNameAdmin i mname ksn'
pure (KeyGov ksn')
Right ksn -> do
lift $ enforceKeysetNameAdmin i mname ksn
pure (KeyGov ksn)
CapGov (UnresolvedGov govName) ->
case find (\d -> BN (BareName (defName d)) == govName) defs of
Just (DCap d) -> do
Expand Down

0 comments on commit 29861a0

Please sign in to comment.