geniusyield / atlas

Application backend for Plutus smart contracts on Cardano
https://atlas-app.io
Apache License 2.0
66 stars 18 forks source link

How to get a validator's own hash #286

Closed Fiftyw3bs closed 7 months ago

Fiftyw3bs commented 8 months ago

Describe the bug This may not be the appropriate place for this question. But it seems ownHash of PlutusLedgerApi.V1.Contexts is missing inplutus-ledge-api v1.6.0. used in atlas v0.4.0. How do folks - using atlas - get a Validator's own hash?

To Reproduce Steps to reproduce the behavior: Make use of atlas `v.0.4.0, try calling ownHash from within a validator.

Expected behavior Every function provided by plutus-ledger-api should be available.

Station (please complete the following information):

sourabhxyz commented 8 months ago

You want to get it onchain?

Fiftyw3bs commented 8 months ago

Yes

sourabhxyz commented 8 months ago

You can find your own input and take payment credential from address field.

sourabhxyz commented 7 months ago

Please re-open if relevant.