I'm encountering a strange problem, and I can't figure what's going on.
Here is my code :
paramsUtxo is an utxo with a state datum my contract need
utxos are from my wallet
asset is the asset built with the policyId of the contract. I want to mint and distribute
contract_asset is a contract locked in the contract which is spent to the contract itself
bankStateUtxo is an utxo containing the contract_asset
For simplicity, I've set redeemers and datums to Data.void()
I'm encountering a strange problem, and I can't figure what's going on.
Here is my code :
paramsUtxo is an utxo with a state datum my contract need utxos are from my wallet asset is the asset built with the policyId of the contract. I want to mint and distribute contract_asset is a contract locked in the contract which is spent to the contract itself bankStateUtxo is an utxo containing the contract_asset
For simplicity, I've set redeemers and datums to Data.void()
When I have only one of this line, the other one disabled , the contract is executed. When I have these two lines, the code crash with the message
The code PlutusScriptWitness.from_script is called twice. The second time in the line
ptr0 is equal to 0. Then the app is crashing.
Have you an idea of what's going on ?