chore: fix new lint warnings (#400)
This commit is contained in:
parent
ae796b4a01
commit
90432bf556
10 changed files with 163 additions and 182 deletions
|
|
@ -364,7 +364,7 @@ mod tests {
|
|||
|
||||
let generated = tx
|
||||
.plutus_v1_scripts()
|
||||
.get(0)
|
||||
.first()
|
||||
.unwrap()
|
||||
.compute_hash()
|
||||
.to_string();
|
||||
|
|
|
|||
|
|
@ -266,8 +266,8 @@ impl<'b> MultiEraTx<'b> {
|
|||
|
||||
pub fn mints(&self) -> Vec<MultiEraPolicyAssets> {
|
||||
match self {
|
||||
MultiEraTx::Byron(_) => vec![],
|
||||
MultiEraTx::AlonzoCompatible(x, _) => x
|
||||
MultiEraTx::Byron(_) => vec![],
|
||||
MultiEraTx::AlonzoCompatible(x, _) => x
|
||||
.transaction_body
|
||||
.mint
|
||||
.iter()
|
||||
|
|
@ -298,7 +298,7 @@ impl<'b> MultiEraTx<'b> {
|
|||
/// https://github.com/input-output-hk/cardano-ledger/commit/a342b74f5db3d3a75eae3e2abe358a169701b1e7
|
||||
pub fn collateral(&self) -> Vec<MultiEraInput> {
|
||||
match self {
|
||||
MultiEraTx::Byron(_) => vec![],
|
||||
MultiEraTx::Byron(_) => vec![],
|
||||
MultiEraTx::AlonzoCompatible(x, _) => x
|
||||
.transaction_body
|
||||
.collateral
|
||||
|
|
@ -342,7 +342,7 @@ impl<'b> MultiEraTx<'b> {
|
|||
pub fn total_collateral(&self) -> Option<u64> {
|
||||
match self {
|
||||
MultiEraTx::Babbage(x) => x.transaction_body.total_collateral,
|
||||
MultiEraTx::Conway(x) => x.transaction_body.total_collateral,
|
||||
MultiEraTx::Conway(x) => x.transaction_body.total_collateral,
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue