Skip to content

Update minting contract to use mustPayToPubKeyAddress #29

@rynoV

Description

@rynoV

Currently (#22) there's a warning:

  in module Seabug.Contract.CnftMint
  at src/Seabug/Contract/CnftMint.purs:33:1 - 36:46 (line 33, column 1 - line 36, column 46)

    A custom warning occurred while solving type class constraints:

      Some wallets may not recognize addresses without a staking key component. Consider usingmustPayToPubKeyAddress


  in value declaration mintCnft

Don't think this is critical because the minting is working. It should be a quick fix, I just couldn't test it because Nami and Gero weren't working and my KeyWallet didn't have a staking key. The fix should be:

  • Update CnftMint to use mustPayToPubKeyAddress instead of mustPayToPubKey (use ownerStake variable that's already defined)
  • Update Mint to search for utxos at payPubKeyHashBaseAddress instead of payPubKeyHashEnterpriseAddress

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions