This issue happens with wallet from seed. On signTx call, an UTXO query is made to check if any of the inputs is locked by the payment pub key hash. However, instead of querying by payment credential, the function only queries by base address (assuming that addressType is unset). Therefore the library refuses to sign the transaction even if it's a valid signer.
In this example on preview testnet, all UTXOs share the same payment credential. Because the library doesn't sign, error is thrown on transaction submission:
This issue happens with wallet from seed. On
signTx
call, an UTXO query is made to check if any of the inputs is locked by the payment pub key hash. However, instead of querying by payment credential, the function only queries by base address (assuming thataddressType
is unset). Therefore the library refuses to sign the transaction even if it's a valid signer.https://github.com/spacebudz/lucid/blob/0c8fec09e6d1da12eb01eb41783e1638dc33e525/src/lucid/lucid.ts#L501
Reproduce case:
Viewed by cardano-cli:
In this example on preview testnet, all UTXOs share the same payment credential. Because the library doesn't sign, error is thrown on transaction submission: