Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

LL-8982 Add error for 0 qty ERC1155 NFT send #1659

Merged
merged 3 commits into from
Jan 28, 2022
Merged

LL-8982 Add error for 0 qty ERC1155 NFT send #1659

merged 3 commits into from
Jan 28, 2022

Conversation

grsoares21
Copy link
Contributor

@grsoares21 grsoares21 commented Jan 26, 2022

Context (issues, jira)

LL-8982

Description / Usage

The user won't be able to use '0' for quantity when sending an ERC1155 NFT
image

Expectations

  • Test coverage: The changes of this PR are covered by test. Unit test were added with mocks when depending on a backend/device.
  • No impact: The changes of this PR have ZERO impact on the userland. Meaning, we can use these changes without modifying LLD/LLM at all. It will be a "noop" and the maintainers will be able to bump it without changing anything.

To be tested by QA

@grsoares21 grsoares21 requested a review from a team as a code owner January 26, 2022 16:20
@vercel
Copy link

vercel bot commented Jan 26, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/ledgerhq/ledger-live-common/8MV1yJMFXyhyvGEheebnhTYQaBvz
✅ Preview: https://ledger-live-common-git-ll-8982-ledgerhq.vercel.app

Copy link
Contributor

@gre gre left a comment

Choose a reason for hiding this comment

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

have a general comment here. cc @lambertkevin

@@ -14,6 +14,9 @@ import { prepareTransaction } from "./erc721";
const notOwnedNft = createCustomErrorClass("NotOwnedNft");
const notEnoughNftOwned = createCustomErrorClass("NotEnoughNftOwned");
const notTokenIdsProvided = createCustomErrorClass("NotTokenIdsProvided");
const quantityNeedsToBePositive = createCustomErrorClass(
Copy link
Contributor

Choose a reason for hiding this comment

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

errors need to start with uppercase (indeed it's also a mistake for all other vars)

Copy link
Contributor

Choose a reason for hiding this comment

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

to be taken into consideration later

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants