capsule-corp-ternoa / ternoa-js

Ternoa JavaScript SDK to build on top of the Ternoa Chain ⚙️
https://docs.ternoa.network
Apache License 2.0
24 stars 10 forks source link

EXTRINSIC_FAILED error from balanceTransfer #101

Closed ogous closed 2 years ago

ogous commented 2 years ago

Describe the bug

balanceTransfer method does not work and throws this error:

Error: EXTRINSIC_FAILED
    at BlockchainEvents.findEventOrThrow (/Users/oguzhanali/Development/mafiafoot/node_modules/ternoa-js/events.js:823:19)
    at /Users/oguzhanali/Development/mafiafoot/node_modules/ternoa-js/balance/extrinsics.js:90:46
    at step (/Users/oguzhanali/Development/mafiafoot/node_modules/ternoa-js/balance/extrinsics.js:33:23)
    at Object.next (/Users/oguzhanali/Development/mafiafoot/node_modules/ternoa-js/balance/extrinsics.js:14:53)
    at fulfilled (/Users/oguzhanali/Development/mafiafoot/node_modules/ternoa-js/balance/extrinsics.js:5:58)

To reproduce

 await initializeApi(WSS)
 const keyring = await getKeyringFromSeed(SEED)
 const response = await balancesTransfer(
     WALLETID,
     1,
     keyring,
     0,
    )

Expected behavior

As document declares: https://ternoa-js.ternoa.dev/modules.html#balancesTransfer

Screenshots

No response

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Additional context

No response

ogous commented 2 years ago

This issue is resolved spontaneously this morning, after first encounter last night.

ipapandinas commented 2 years ago

The execution flow is properly sequenced.