We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spendable_sui = client.split_coin_txn( signer=cfg.active_address, coin_object_id=sui1, split_amounts=[amount], gas=sui2, gas_budget=2000000 )
this fails with
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[11], line 1 ----> 1 spendable_sui = client.split_coin_txn( 2 signer=cfg.active_address, 3 coin_object_id="0x4f3f787e0a04e90dc19f47ac473e5f669fcfdce0c5b18661cd002a5ef0c1cd54", 4 split_amounts=[configs["HIVEPROFILE_MINT_FEE"]], 5 gas="0xd512a63d3df9a5a9be97ba26b2162338cbdf0f844a8711bf84dd9ae648eee77f", 6 gas_budget=2000000 7 ) File [~/Drawer/astrotechlabs/degenhive-plus/env/lib/python3.10/site-packages/pysui/sui/sui_clients/sync_client.py:651](https://file+.vscode-resource.vscode-cdn.net/Users/debjit/Drawer/astrotechlabs/degenhive-plus/hive-testing/~/Drawer/astrotechlabs/degenhive-plus/env/lib/python3.10/site-packages/pysui/sui/sui_clients/sync_client.py:651), in SuiClient.split_coin_txn(self, signer, coin_object_id, split_amounts, gas, gas_budget) 649 inargs: dict = locals().copy() 650 inargs.pop("self") --> 651 return self.execute(SplitCoin(**inargs)) File [~/Drawer/astrotechlabs/degenhive-plus/env/lib/python3.10/site-packages/pysui/sui/sui_builders/base_builder.py:297](https://file+.vscode-resource.vscode-cdn.net/Users/debjit/Drawer/astrotechlabs/degenhive-plus/hive-testing/~/Drawer/astrotechlabs/degenhive-plus/env/lib/python3.10/site-packages/pysui/sui/sui_builders/base_builder.py:297), in sui_builder.._autoargs..wrapper(self, *args, **kwargs) 295 if sieve(attr): 296 __var_map[attr] = val --> 297 __var_type_map[attr] = sui_true_type(spec.annotations[attr]) 298 # __var_type_map[attr] = spec.annotations[attr] 299 300 # handle keywords with defaults: 301 if spec.kwonlydefaults: KeyError: 'gas'
if gas is removed, it says
gas
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[12], line 1 ----> 1 spendable_sui = client.split_coin_txn( 2 signer=cfg.active_address, 3 coin_object_id="0x4f3f787e0a04e90dc19f47ac473e5f669fcfdce0c5b18661cd002a5ef0c1cd54", 4 split_amounts=[configs["HIVEPROFILE_MINT_FEE"]], 5 # gas="0xd512a63d3df9a5a9be97ba26b2162338cbdf0f844a8711bf84dd9ae648eee77f", 6 gas_budget=2000000 7 ) TypeError: SuiClient.split_coin_txn() missing 1 required keyword-only argument: 'gas'
most probably an issue which checks kwargs to map them to defaults. i'm not sure. merge_coin_txn works fine though
merge_coin_txn
The text was updated successfully, but these errors were encountered:
fixes FrankC01#129
3b7f42d
Merge pull request #130 from debjit-bw/main
2c3b5e3
fixes #129
Successfully merging a pull request may close this issue.
this fails with
if
gas
is removed, it saysmost probably an issue which checks kwargs to map them to defaults. i'm not sure.
merge_coin_txn
works fine thoughThe text was updated successfully, but these errors were encountered: