Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update token transfer to follow specs #551

Merged

Conversation

danielailie
Copy link
Contributor

No description provided.

@danielailie danielailie self-assigned this Dec 17, 2024
andreibancioiu
andreibancioiu previously approved these changes Dec 17, 2024
assert.equal(transfer.toString(), "100000000000000000");
});

it("should work with NFTs (legacy)", () => {
const identifier = "TEST-38f249";
const nonce = 1;
const transfer = TokenTransfer.nonFungible(identifier, nonce);
const nonce = 1n;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe drop the (legacy) comment, as well?

@@ -85,7 +85,7 @@ export class TokenTransfer {
}
}

static newFromEgldAmount(amount: bigint): TokenTransfer {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe this should have been deprecated as well? So it is not breaking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we discussed in the office and said it is ok to rename it as it was not long time added

@danielailie danielailie merged commit b8f4eae into feat/next Dec 17, 2024
4 checks passed
@danielailie danielailie deleted the TOOL-405-update-to-use-new-methods-on-token-transfer branch December 17, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants