better data deserialization errors and test hint

now runs even being in a sequence
This commit is contained in:
Kasey White
2022-12-29 18:20:13 -05:00
committed by Lucas
parent ee678f2978
commit b0ea187151
3 changed files with 62 additions and 16 deletions

View File

@@ -44,8 +44,8 @@ pub enum Error {
UnexpectedEd25519PublicKeyLength(usize),
#[error("Ed25519S Signature should be 64 bytes but it was {0}")]
UnexpectedEd25519SignatureLength(usize),
#[error("Failed to deserialise PlutusData:\n\n{0:#?}")]
DeserialisationError(Value),
#[error("Failed to deserialise PlutusData using {0}:\n\n{1:#?}")]
DeserialisationError(String, Value),
#[error("Integer overflow")]
OverflowError,
}