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

Make treasury interface closer to ton library wallet interface #3

Open
talkol opened this issue Jan 26, 2023 · 1 comment
Open

Make treasury interface closer to ton library wallet interface #3

talkol opened this issue Jan 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@talkol
Copy link

talkol commented Jan 26, 2023

Is your feature request related to a problem? Please describe.
When porting code from ton library, I usually send with value as string:

await walletContract.sendTransfer({
    secretKey: key.secretKey,
    seqno: seqno,
    messages: [
      internal({
        to: "EQDrjaLahLkMB-hMCmkzOyBuHJ139ZUYmPHu6RRBKnbdLIYI",
        value: "0.001", // 0.001 TON
        body: "Hello", // optional comment
        bounce: false,
      })
    ]
  });

Describe the solution you'd like
Right now all of the treasury send interfaces accept only bigint, let's make them similar to accept string too and do toNano automatically like ton wallets

@talkol talkol added the enhancement New feature or request label Jan 26, 2023
@IAlexandrl
Copy link

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

No branches or pull requests

2 participants