-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of reward redeemers on commit transaction (#1690)
## Why fix #1643 Our commit transaction was accounting only for the spending redeemers and discarded the minting, rewarding etc. ## What Keep the existing redeemers intact and only adjust the spending redeemers accounting for the new initial input to spend. --- <!-- Consider each and tick it off one way or the other --> * [x] CHANGELOG updated or not needed * [x] Documentation updated or not needed * [x] Haddocks updated or not needed * [x] No new TODOs introduced or explained herafter
- Loading branch information
Showing
6 changed files
with
88 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Hydra.Cardano.Api.StakeAddress where | ||
|
||
import Hydra.Cardano.Api.Prelude | ||
|
||
-- | Construct a stake address from a Plutus script. | ||
mkScriptStakeAddress :: | ||
forall lang. | ||
IsPlutusScriptLanguage lang => | ||
NetworkId -> | ||
PlutusScript lang -> | ||
StakeAddress | ||
mkScriptStakeAddress networkId script = | ||
makeStakeAddress networkId $ StakeCredentialByScript $ hashScript $ PlutusScript version script | ||
where | ||
version = plutusScriptVersion @lang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters