Skip to content

Conversation

@samuelWilliams99
Copy link
Contributor

No description provided.

@samuelWilliams99 samuelWilliams99 added the enhancement New feature or request label Sep 6, 2022
-> Contract r TransactionHash
marketPlaceSell (curr /\ tn) = do
owner <- liftedM "Cannot get PaymentPubKeyHash" ownPaymentPubKeyHash
ownerStake <- liftedM "Cannot get StakePubKeyHash" ownStakePubKeyHash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it throw error when there is no staking key? Maybe constructing an address without staking key would be more desired

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, copied this from the minting contract, ill update it

( Datum $ toData $
MarketplaceDatum { getMarketplaceDatum: asset }
)
(Value.singleton (fst asset) (snd asset) one)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does balancing/min ADA requirement work? Will some balancing mechanism add missing ADA here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it does, as the plutip tests pass, but I'll add it in explicit regardless

@samuelWilliams99 samuelWilliams99 merged commit e08c561 into master Sep 21, 2022
@samuelWilliams99 samuelWilliams99 deleted the sam/list-nft branch September 21, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants