+
Skip to content

Conversation

dolanbernard
Copy link
Contributor

Parameterize TransactionBuilder Android bindings for token ID

Motivation

This is needed in order for the Android SDK to handle multiple different token IDs

// FIXME #1595: The token id should be a parameter and not hard coded to Mob
// here
let fee_amount = Amount::new(Mob::MINIMUM_FEE, Mob::ID);
let token_id = TokenId::try_from(token_id as u64).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this can just be TokenId::from, all u64's are potentially valid token ids

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, the problem is jlong ~= i64

Copy link
Contributor

@cbeck88 cbeck88 left a comment

Choose a reason for hiding this comment

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

LGTM

@dolanbernard dolanbernard merged commit dafa1f6 into release/v1.2.0 May 29, 2022
@dolanbernard dolanbernard deleted the token-id-android-sdk branch May 29, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载