question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kintsugi metadata not updated?

See original GitHub issue

I am trying to use this package to do stuff programmatically in python. Reading from storage works fine, so I think I have got the basics correct.

When trying to do a transfer like this,

keypair = Keypair.create_from_mnemonic(new_mnemo, ss58_format=2092, language_code=MnemonicLanguageCode.ITALIAN)
my_address = keypair.ss58_address
a=get_account_balances(my_address, 'KINT')


call = kint_substrate.compose_call(
    call_module='Tokens',
    call_function='transfer',
    call_params={
        'dest': 'a3cFU1biFvmBCup9SBvqihpvqVmwCtLsT1mK2dzqwWC94AjJw',
        'currency_id': {'Token': 'KINT'},
        'amount': a['free']//2,
    }
)

payment_info = kint_substrate.get_payment_info(call=call, keypair=keypair)

I get this:

substrateinterface.exceptions.SubstrateRequestException: {'code': 1, 'message': 'Unable to query dispatch info.', 'data': 'Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed\nWASM backtrace:\n\n    0: 0x34f44a - <unknown>!rust_begin_unwind\n    1: 0x1190c - <unknown>!core::panicking::panic_fmt::hce09957bf3e88e08\n    2: 0x1fc0f6 - <unknown>!TransactionPaymentApi_query_info\n'}

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
RobinDavidcommented, Nov 28, 2022

Unfortunately not. I spent some time tracking the origin but gave up. I think it would need @arjanz help.

0reactions
kazakovdevcommented, Nov 28, 2022

Unfortunately not. I spent some time tracking the origin but gave up. I think it would need @arjanz help.

I’m at sub0 atm so my time is a bit limited, but what you could try is to compare the extrinsic bytes ( str(extrinsic.data) ) generated with py-substrate-interface against the same extrinsic generated with PolkadotJS to rule out any SCALE encoding difference.

Thank you for your time! Just checked. The bytes in PolkadotJS and in call.data are identical. At the same time, when sending through the JS extension, all is successful PS This call works in other parachains (tried Acala for experiment, they have same extrinsic)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases · interlay/interbtc-clients - GitHub
faucet-parachain-metadata-kintsugi ... update kintsugi metadata to 1.16.0 ... allow the vault client to startup when liquidated; do not lock additional ...
Read more >
Kintsugi - Path of Exile Wiki - Fandom
Kintsugi Exquisite LeatherQuality: +20% Evasion: (1548-1689) Movement Speed: -3%Requires Level 62, 170 Dex(100-120)% increased Evasion Rating
Read more >
Connect to the Kintsugi Testnet - HackMD
Setting up Metamask · Ensure your nodes are using the current devnet config and are syncing or already synced. · Open your Metamask...
Read more >
Kintsugi #98 - Kohi Kintsugi | Rarible
Evoking inspiration from the Japanese art of Kintsugi this avant-garde collection subverts expectations, examining the relationship between self and ...
Read more >
fxhash — Kintsugi #293
Kintsugi is a philosophy, it's the concept of highlighting imperfections, visualizing patches and seams on the area to focus on, rather than focusing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found