explorer
explorer copied to clipboard
[sandbox] (optional uint) shown as uint
Describe the bug
A contract has a parameter of type (optional uint), but the transaction is sent as uint.
To Reproduce
- On testnet, use contract
ST2PABAF9FTAJYNFZH93XENAJ8FVY99RRM4DF2YCW.boom-pool-nfts-v1functiondelegate-stx - enter stacker: ST2PABAF9FTAJYNFZH93XENAJ8FVY99RRM4DF2YCW, amount: 100, until-burn-ht: 10000000
- click "call function"
- confirm in stacks web wallet
- see error BadFunctionArguments
node response:
{"error":"transaction rejected","reason":"BadFunctionArgument","reason_data":{"message":"TypeError(OptionalType(UIntType), UIntType)"},"txid":"4d05aefb7c94f64341e6996b023c46a04150fe516cb16cbe5f873014e82014a2"}
Screenshots

until-burn-ht shown as uint

Additional Context Contract deployment: https://explorer.stacks.co/txid/ST2PABAF9FTAJYNFZH93XENAJ8FVY99RRM4DF2YCW.boom-pool-nfts-v1?chain=testnet
Line 68:

@obycode is this still a thing on the sandbox?
Yes, it looks like it still is an issue.
You can use this contract on testnet for a simple reproducer: ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5.nearby-magenta-termite