Actually decode Conway transaction in 'aiken tx simulate'

This commit is contained in:
KtorZ 2024-08-08 18:18:07 +02:00
parent 508d88035b
commit c454dc72eb
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
2 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,7 @@ pub fn exec(
) )
}; };
let tx = MultiEraTx::decode_for_era(Era::Babbage, &tx_bytes).into_diagnostic()?; let tx = MultiEraTx::decode_for_era(Era::Conway, &tx_bytes).into_diagnostic()?;
eprintln!( eprintln!(
"{} {}", "{} {}",

View File

@ -141,6 +141,10 @@ pub fn scripts_needed(
}) })
.unwrap_or_default(); .unwrap_or_default();
// TODO
assert!(txb.proposal_procedures.is_none());
assert!(txb.voting_procedures.is_none());
needed.append(&mut spend); needed.append(&mut spend);
needed.append(&mut reward); needed.append(&mut reward);
needed.append(&mut cert); needed.append(&mut cert);