[Sandbox] Post-condition creation failed
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:
- Go to https://explorer.hiro.so/txid/0xda6e819b2841d06cfd94d033a145a0b298d5c860aa8c949adc99bc3237a3219f?chain=mainnet&tab=availableFunctions
- Click on Available Function
- Click on
join-pot - Choose Deny Mode
- Select STX Post Condition
- Enter same amount as function parameter (10000000) 10 STX
- Press "Call Function"
- 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