use validatorHashToTokenName
This commit is contained in:
parent
2a993ae777
commit
e67dd21d06
1 changed files with 2 additions and 3 deletions
|
|
@ -86,6 +86,7 @@ import Agora.Utils (
|
|||
pvalueSpent,
|
||||
scriptHashFromAddress,
|
||||
validatorHashToAddress,
|
||||
validatorHashToTokenName,
|
||||
)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
@ -129,7 +130,6 @@ import Plutarch.TryFrom (ptryFrom)
|
|||
import Plutus.V1.Ledger.Api (
|
||||
CurrencySymbol (..),
|
||||
MintingPolicy,
|
||||
TokenName (..),
|
||||
)
|
||||
import Plutus.V1.Ledger.Scripts (ValidatorHash (..))
|
||||
import Plutus.V1.Ledger.Value (
|
||||
|
|
@ -735,8 +735,7 @@ stakeSTAssetClassFromGovernor gov = AssetClass (symbol, tokenName)
|
|||
symbol = stakeSTSymbolFromGovernor gov
|
||||
|
||||
-- Tag with the address where the token is being sent to.
|
||||
ValidatorHash hash = stakeValidatorHashFromGovernor gov
|
||||
tokenName = TokenName hash
|
||||
tokenName = validatorHashToTokenName $ stakeValidatorHashFromGovernor gov
|
||||
|
||||
stakeFromGovernor :: Governor -> Stake
|
||||
stakeFromGovernor gov =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue