Skip to content

Commit

Permalink
Return a VString from create-principal for backcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Oct 24, 2023
1 parent 592ea1b commit d46b91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pact-core/Pact/Core/IR/Eval/RawBuiltin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ coreCreatePrincipal :: (IsBuiltin b, MonadEval b i m) => NativeFunction b i m
coreCreatePrincipal info b cont handler _env = \case
[VGuard g] -> do
pr <- createPrincipalForGuard g
returnCEKValue cont handler $ VPactValue $ PPrincipal pr
returnCEKValue cont handler $ VString $ Pr.mkPrincipalIdent pr
args -> argsError info b args

coreValidatePrincipal :: (IsBuiltin b, MonadEval b i m) => NativeFunction b i m
Expand Down

0 comments on commit d46b91e

Please sign in to comment.