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

[enhancement] Enable logic similar to TS SDK .gas psuedo coin #106

Closed
FrankC01 opened this issue May 5, 2023 · 1 comment
Closed

[enhancement] Enable logic similar to TS SDK .gas psuedo coin #106

FrankC01 opened this issue May 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@FrankC01
Copy link
Owner

FrankC01 commented May 5, 2023

This will enable things like starting a transaction with only 1 coin to start with.

Fundementally, it also enables things like coin = txn.split_coin(txn.gas,amounts=[1000000])

@FrankC01 FrankC01 added the enhancement New feature or request label May 5, 2023
@FrankC01 FrankC01 self-assigned this May 5, 2023
@FrankC01 FrankC01 added this to pysui May 5, 2023
@github-project-automation github-project-automation bot moved this to Backlog in pysui May 5, 2023
@FrankC01 FrankC01 moved this from Backlog to In Progress in pysui May 5, 2023
@FrankC01
Copy link
Owner Author

FrankC01 commented May 6, 2023

This works.

    client = SuiClient(SuiConfig.default_config())
    txer = SuiTransaction(client)
    spcoin = txer.split_coin(coin=bcs.Argument("GasCoin"), amounts=[1000000])
    txer.transfer_objects(transfers=[spcoin], recipient=client.config.active_address)

@github-project-automation github-project-automation bot moved this from In Progress to Done in pysui May 6, 2023
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
Status: Done
Development

No branches or pull requests

1 participant