cardano-serialization-lib icon indicating copy to clipboard operation
cardano-serialization-lib copied to clipboard

Help, NFT mint transaction sign failure: ShelleyTxValidationError...

Open code-brewer opened this issue 2 years ago • 0 comments

I study NFT minter demo https://github.com/cheffNFT/twitternfts After reviewed it many times, I think the code is good and should be work.

But if start it up and do mint NFT operation, I received error as:

{code: 2, info: 'Wallet could not send the tx.', message: '"transaction submit error ShelleyTxValidationError…6a779ab7d6f191e2760564721419e8637f381742\")]))])"'}code: 2info: "Wallet could not send the tx."message: ""transaction submit error ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (InvalidWitnessesUTXOW [VKey (VerKeyEd25519DSIGN \"ef1dd8ffc74b7915e579e6406a779ab7d6f191e27...

From src/js/mint/mint.mjs, we can see that it use Nami's default account as policy script's sig value (inside createLockingPolicyScript() ). And inside signTx(), it can be watched that totalVkeys who contain only one witness element.

Is the fault lie in Vkeywitnesses instance totalVkeys who contain only one witness ?

Should totalVkeys contain two repeated witness if policy script and transaction signer is the same account?

code-brewer avatar Feb 28 '22 18:02 code-brewer