1

I would like to know why certain types are defined multiple times in different packages and whether that's suppose to dictate which types to use for on-chain code and which for off-chain code?

Example: Address type exists in the following packages:

Plutus.V1.Ledger.Address

Ledger.Address

1 Answer 1

4

The second is just re-exporting. Using the imports of the form Ledger.Address will mean bumping versions wont require lots of edits of V1 to V2 . This may or may not be desirable. Depends on your context.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.