This commit is contained in:
julian 2023-10-20 11:00:29 -06:00
parent f55fd7f05a
commit 33efc956e9
2 changed files with 2 additions and 34 deletions

View file

@ -107,23 +107,6 @@ class InputV2 {
);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
return other is InputV2 &&
other.scriptSigHex == scriptSigHex &&
other.sequence == sequence &&
other.outpoint == outpoint;
}
@override
int get hashCode => Object.hash(
scriptSigHex,
sequence,
outpoint,
);
@override
String toString() {
return 'InputV2(\n'
@ -135,6 +118,7 @@ class InputV2 {
' coinbase: $coinbase,\n'
' witness: $witness,\n'
' innerRedeemScriptAsm: $innerRedeemScriptAsm,\n'
' walletOwns: $walletOwns,\n'
')';
}
}

View file

@ -91,28 +91,12 @@ class OutputV2 {
return valueStringSats;
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
return other is OutputV2 &&
other.scriptPubKeyHex == scriptPubKeyHex &&
_listEquals(other.addresses, addresses) &&
other.valueStringSats == valueStringSats;
}
@override
int get hashCode => Object.hash(
scriptPubKeyHex,
addresses,
valueStringSats,
);
@override
String toString() {
return 'OutputV2(\n'
' scriptPubKeyHex: $scriptPubKeyHex,\n'
' value: $value,\n'
' walletOwns: $walletOwns,\n'
' addresses: $addresses,\n'
')';
}