mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
clean up
This commit is contained in:
parent
f55fd7f05a
commit
33efc956e9
2 changed files with 2 additions and 34 deletions
|
@ -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
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return 'InputV2(\n'
|
return 'InputV2(\n'
|
||||||
|
@ -135,6 +118,7 @@ class InputV2 {
|
||||||
' coinbase: $coinbase,\n'
|
' coinbase: $coinbase,\n'
|
||||||
' witness: $witness,\n'
|
' witness: $witness,\n'
|
||||||
' innerRedeemScriptAsm: $innerRedeemScriptAsm,\n'
|
' innerRedeemScriptAsm: $innerRedeemScriptAsm,\n'
|
||||||
|
' walletOwns: $walletOwns,\n'
|
||||||
')';
|
')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,28 +91,12 @@ class OutputV2 {
|
||||||
return valueStringSats;
|
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
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return 'OutputV2(\n'
|
return 'OutputV2(\n'
|
||||||
' scriptPubKeyHex: $scriptPubKeyHex,\n'
|
' scriptPubKeyHex: $scriptPubKeyHex,\n'
|
||||||
' value: $value,\n'
|
' value: $value,\n'
|
||||||
|
' walletOwns: $walletOwns,\n'
|
||||||
' addresses: $addresses,\n'
|
' addresses: $addresses,\n'
|
||||||
')';
|
')';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue