IntersectMBO / plutus

The Plutus language implementation and tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting the validator hash onchain

Fiftyw3bs opened this issue · comments

I've just discovered that there are no more ownHash or ownHashes in the PlutusLedgerApi.V2.Contexts. How else can a validator access its own hash?

ownHash is just a helper function. The plutus-ledger-api package is supposed to contain types and functions required by the ledger; ownHash isn't one of them, so it was removed. The own hash is still available in ScriptContext, from the txOutAddress field.

The issue seems resolved to me, so I'm closing it. Do feel free to reopen if you disagree.