platform icon indicating copy to clipboard operation
platform copied to clipboard

JS Dash SDK does not handle chainlock

Open pshenmic opened this issue 1 year ago • 0 comments

Expected Behavior

You should be able to register a top up identity, if you received your funds on the wallet were secured with chainlock, insetad of instant send.

Current Behavior

JS SDK fails to register or topUp identity, failing with such message:

[StateTransitionBroadcastError: Instant lock proof signature is invalid or wasn't created recently. Pleases try chain asset lock proof instead.] {
  code: 10513,
  cause: InvalidInstantAssetLockProofSignatureError { __wbg_ptr: 3414016 }
}

Sending new funds locked via InstantSend neither work because the wallet picks up first utxo by default, not allowing you to proceed the operation

Possible Solution

Steps to Reproduce (for bugs)

  1. Init Dash SDK with a new seed phrase
  2. Send a transaction on wallet and make sure it is a chainlocked (not instant send)
  3. Try to register or top up an identity

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop, server, or mobile):
  • Link to your project:

pshenmic avatar Oct 21 '24 20:10 pshenmic