explorer icon indicating copy to clipboard operation
explorer copied to clipboard

[Sandbox] Post-condition creation failed

Open friedger opened this issue 1 week ago • 1 comments

Describe the bug In the sandbox, when adding a post-condition, the creation for STX transfer failes:

Error: Error creating post condition for post condition type 0 at 3894-02eac521e2e23b8f.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:16951 at ew (3894-02eac521e2e23b8f.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:17065) at onSubmit (3894-02eac521e2e23b8f.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:19794) at 1919-1afb42baf1ba2889.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:27134 at 1919-1afb42baf1ba2889.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:29667 at 1919-1afb42baf1ba2889.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:26418

{
    "postConditionMode": 2,
    "postConditionType": "0",
    "postConditionAddress": "SPN4Y5QPGQA8882ZXW90ADC2DHYXMSTN8VAR8C3X",
    "postConditionConditionCode": "1",
    "postConditionAmount": 10000000,
    "errorDetails": {
        "message": "Error creating post condition for post condition type 0",
        "name": "Error",
        "stack": "Error: Error creating post condition for post condition type 0\n    at https://explorer.hiro.so/_next/static/chunks/3894-02eac521e2e23b8f.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:16951\n    at ew (https://explorer.hiro.so/_next/static/chunks/3894-02eac521e2e23b8f.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:17065)\n    at onSubmit (https://explorer.hiro.so/_next/static/chunks/3894-02eac521e2e23b8f.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:19794)\n    at https://explorer.hiro.so/_next/static/chunks/1919-1afb42baf1ba2889.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:27134\n    at https://explorer.hiro.so/_next/static/chunks/1919-1afb42baf1ba2889.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:29667\n    at https://explorer.hiro.so/_next/static/chunks/1919-1afb42baf1ba2889.js?dpl=dpl_CgoucenaGfHMJCgeyboQX5GULCQt:1:26418"
    }
}

To Reproduce Steps to reproduce the behavior:

  1. Go to https://explorer.hiro.so/txid/0xda6e819b2841d06cfd94d033a145a0b298d5c860aa8c949adc99bc3237a3219f?chain=mainnet&tab=availableFunctions
  2. Click on Available Function
  3. Click on join-pot
  4. Choose Deny Mode
  5. Select STX Post Condition
  6. Enter same amount as function parameter (10000000) 10 STX
  7. Press "Call Function"
  8. See wallet popup with deny mode and no post condition, the logs shows the error above

Expected behavior Wallet popup should show stx post condition

friedger avatar Dec 20 '25 06:12 friedger