Open vladimirvolek opened 2 days ago
I can't seem to reproduce the issue 😓. I diff
to check for differences and even copy-pasted your script and ran it using your Blockfrost key and skey and still got:
➜ off-chain git:(main) ✗ npx tsx issue.ts
Wallet address: addr_test1qq7ta7dc00pp5nen7nh9z7hcf4r76ekgenwrt8we7upeegqpqhn850r08ms4d60g34peg3uamv80h5t3ef33l5en6ztqu9qjz7
Wallet Lovelace balance: 100000000
txJSON:
{"inputs":[{"type":"PubKey","txIn":{"txHash":"ea0193498dded11996ae95e6bb5431ecb1738e6c1078aa5dbc90dd6d766e18dd","txIndex":0,"amount":[{"unit":"lovelace","quantity":"100000000"}],"address":"addr_test1qq7ta7dc00pp5nen7nh9z7hcf4r76ekgenwrt8we7upeegqpqhn850r08ms4d60g34peg3uamv80h5t3ef33l5en6ztqu9qjz7"}}],"outputs":[{"address":"addr_test1qrcsu0x34ye9dv5rdcnvzs5fyszf09zfkvr75lqwljlkj3r7cm477qh03xkw55pjta25uvumutk48msee9prpythw0sqev8r56","amount":[{"unit":"dca26fd4de08ab0d886317e65af702b163d361fdbf5f13d1ca5ba11054657374546f6b656e","quantity":"1"}]}],"extraInputs":[{"input":{"outputIndex":0,"txHash":"ea0193498dded11996ae95e6bb5431ecb1738e6c1078aa5dbc90dd6d766e18dd"},"output":{"address":"addr_test1qq7ta7dc00pp5nen7nh9z7hcf4r76ekgenwrt8we7upeegqpqhn850r08ms4d60g34peg3uamv80h5t3ef33l5en6ztqu9qjz7","amount":[{"unit":"lovelace","quantity":"100000000"}]}}],"collaterals":[{"type":"PubKey","txIn":{"txHash":"ea0193498dded11996ae95e6bb5431ecb1738e6c1078aa5dbc90dd6d766e18dd","txIndex":0,"amount":[{"unit":"lovelace","quantity":"100000000"}],"address":"addr_test1qq7ta7dc00pp5nen7nh9z7hcf4r76ekgenwrt8we7upeegqpqhn850r08ms4d60g34peg3uamv80h5t3ef33l5en6ztqu9qjz7"}}],"requiredSignatures":[],"referenceInputs":[],"mints":[{"type":"Plutus","policyId":"dca26fd4de08ab0d886317e65af702b163d361fdbf5f13d1ca5ba110","assetName":"54657374546f6b656e","amount":"1","scriptSource":{"type":"Provided","script":{"code":"589a58980101003232323232253330023232323232533008490117746869732069732061207472616365206d6573736167650015330084911d7468697320697320616e6f74686572207472616365206d6573736167650014a06012601400460100026010004600c00260086ea800452615330034911856616c696461746f722072657475726e65642066616c736500136565734ae7155cf2ba157441","version":"V3"}},"redeemer":{"data":{"type":"Mesh","content":{"alternative":0,"fields":[]}},"exUnits":{"mem":7000000,"steps":3000000000}}}],"changeAddress":"addr_test1qq7ta7dc00pp5nen7nh9z7hcf4r76ekgenwrt8we7upeegqpqhn850r08ms4d60g34peg3uamv80h5t3ef33l5en6ztqu9qjz7","metadata":[{"tag":"721","metadata":"{\"dca26fd4de08ab0d886317e65af702b163d361fdbf5f13d1ca5ba110\":{\"TestToken\":{}}}"}],"validityRange":{},"certificates":[],"withdrawals":[],"signingKey":[],"selectionConfig":{"threshold":"5000000","strategy":"experimental","includeTxFees":true},"network":"preprod"}
evaluateTx with blockfrost-js:
{
type: 'jsonwsp/response',
version: '1.0',
servicename: 'ogmios',
methodname: 'EvaluateTx',
result: { EvaluationFailure: { ScriptFailures: {} } },
reflection: { id: 'db7fae75-2af2-4b3f-ab66-f4d49e9b4966' }
}
All I can think of is maybe the node version? 🤷 You're using v20.10.0 and I'm using v22.9.0
I can confirm I can run @vladimirvolek code just fine and reproduce the issue with both nodejs versions!
Wallet address: addr_test1qpqjxm4xm77fudprzna4xdk5d98dd9peatye8v9ws6fe2c8hacantdtgd4pj5y4kv2v4nrtl5332msgjl8rgsvqdhm4qc80tcz
Wallet Lovelace balance: 20000000
txJSON:
{"inputs":[{"type":"PubKey","txIn":{"txHash":"1f7363a2765d69f6291a17e38dffef447bacad06c8f5441fd746c80a6a51562b","txIndex":0,"amount":[{"unit":"lovelace","quantity":"20000000"}],"address":"addr_test1qpqjxm4xm77fudprzna4xdk5d98dd9peatye8v9ws6fe2c8hacantdtgd4pj5y4kv2v4nrtl5332msgjl8rgsvqdhm4qc80tcz"}}],"outputs":[{"address":"addr_test1qrcsu0x34ye9dv5rdcnvzs5fyszf09zfkvr75lqwljlkj3r7cm477qh03xkw55pjta25uvumutk48msee9prpythw0sqev8r56","amount":[{"unit":"dca26fd4de08ab0d886317e65af702b163d361fdbf5f13d1ca5ba11054657374546f6b656e","quantity":"1"}]}],"extraInputs":[{"input":{"outputIndex":0,"txHash":"1f7363a2765d69f6291a17e38dffef447bacad06c8f5441fd746c80a6a51562b"},"output":{"address":"addr_test1qpqjxm4xm77fudprzna4xdk5d98dd9peatye8v9ws6fe2c8hacantdtgd4pj5y4kv2v4nrtl5332msgjl8rgsvqdhm4qc80tcz","amount":[{"unit":"lovelace","quantity":"20000000"}]}}],"collaterals":[{"type":"PubKey","txIn":{"txHash":"1f7363a2765d69f6291a17e38dffef447bacad06c8f5441fd746c80a6a51562b","txIndex":0,"amount":[{"unit":"lovelace","quantity":"20000000"}],"address":"addr_test1qpqjxm4xm77fudprzna4xdk5d98dd9peatye8v9ws6fe2c8hacantdtgd4pj5y4kv2v4nrtl5332msgjl8rgsvqdhm4qc80tcz"}}],"requiredSignatures":[],"referenceInputs":[],"mints":[{"type":"Plutus","policyId":"dca26fd4de08ab0d886317e65af702b163d361fdbf5f13d1ca5ba110","assetName":"54657374546f6b656e","amount":"1","scriptSource":{"type":"Provided","script":{"code":"589a58980101003232323232253330023232323232533008490117746869732069732061207472616365206d6573736167650015330084911d7468697320697320616e6f74686572207472616365206d6573736167650014a06012601400460100026010004600c00260086ea800452615330034911856616c696461746f722072657475726e65642066616c736500136565734ae7155cf2ba157441","version":"V3"}},"redeemer":{"data":{"type":"Mesh","content":{"alternative":0,"fields":[]}},"exUnits":{"mem":7000000,"steps":3000000000}}}],"changeAddress":"addr_test1qpqjxm4xm77fudprzna4xdk5d98dd9peatye8v9ws6fe2c8hacantdtgd4pj5y4kv2v4nrtl5332msgjl8rgsvqdhm4qc80tcz","metadata":[{"tag":"721","metadata":"{\"dca26fd4de08ab0d886317e65af702b163d361fdbf5f13d1ca5ba110\":{\"TestToken\":{}}}"}],"validityRange":{},"certificates":[],"withdrawals":[],"signingKey":[],"selectionConfig":{"threshold":"5000000","strategy":"experimental","includeTxFees":true},"network":"preprod"}
evaluateTx with blockfrost-js:
{
type: 'jsonwsp/response',
version: '1.0',
servicename: 'ogmios',
methodname: 'EvaluateTx',
result: { EvaluationFailure: { ScriptFailures: {} } },
reflection: { id: 'cbdffd2c-3e04-46f7-9712-d83289c816df' }
}
The code:
Result: