Remove reference to Orchard when using ycash
This commit is contained in:
parent
2c99d409f6
commit
5f986c32b3
|
@ -18,7 +18,6 @@ class TxPlanPage extends StatelessWidget {
|
||||||
|
|
||||||
factory TxPlanPage.fromPlan(String plan, bool signOnly) {
|
factory TxPlanPage.fromPlan(String plan, bool signOnly) {
|
||||||
final reportStr = WarpApi.transactionReport(active.coin, plan);
|
final reportStr = WarpApi.transactionReport(active.coin, plan);
|
||||||
print(reportStr);
|
|
||||||
final json = jsonDecode(reportStr);
|
final json = jsonDecode(reportStr);
|
||||||
final report = TxReport.fromJson(json);
|
final report = TxReport.fromJson(json);
|
||||||
return TxPlanPage(plan, report, signOnly);
|
return TxPlanPage(plan, report, signOnly);
|
||||||
|
@ -26,6 +25,7 @@ class TxPlanPage extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final supportsUA = active.coinDef.supportsUA;
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
final rows = report.outputs
|
final rows = report.outputs
|
||||||
.map((e) => DataRow(cells: [
|
.map((e) => DataRow(cells: [
|
||||||
|
@ -51,11 +51,11 @@ class TxPlanPage extends StatelessWidget {
|
||||||
ListTile(title: Text('Transparent Input'), trailing: Text(amountToString(report.transparent, MAX_PRECISION))),
|
ListTile(title: Text('Transparent Input'), trailing: Text(amountToString(report.transparent, MAX_PRECISION))),
|
||||||
ListTile(title: Text('Sapling Input'), trailing: Text(
|
ListTile(title: Text('Sapling Input'), trailing: Text(
|
||||||
amountToString(report.sapling, MAX_PRECISION))),
|
amountToString(report.sapling, MAX_PRECISION))),
|
||||||
ListTile(title: Text('Orchard Input'), trailing: Text(
|
if (supportsUA) ListTile(title: Text('Orchard Input'), trailing: Text(
|
||||||
amountToString(report.orchard, MAX_PRECISION))),
|
amountToString(report.orchard, MAX_PRECISION))),
|
||||||
ListTile(title: Text('Net Sapling Change'), trailing: Text(
|
ListTile(title: Text('Net Sapling Change'), trailing: Text(
|
||||||
amountToString(report.net_sapling, MAX_PRECISION))),
|
amountToString(report.net_sapling, MAX_PRECISION))),
|
||||||
ListTile(title: Text('Net Orchard Change'), trailing: Text(
|
if (supportsUA) ListTile(title: Text('Net Orchard Change'), trailing: Text(
|
||||||
amountToString(report.net_orchard, MAX_PRECISION))),
|
amountToString(report.net_orchard, MAX_PRECISION))),
|
||||||
ListTile(title: Text('Fee'), trailing: Text(amountToString(report.fee, MAX_PRECISION))),
|
ListTile(title: Text('Fee'), trailing: Text(amountToString(report.fee, MAX_PRECISION))),
|
||||||
privacyToString(report.privacy_level)!,
|
privacyToString(report.privacy_level)!,
|
||||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.2.17+320
|
version: 1.2.17+321
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.12.0 <3.0.0"
|
sdk: ">=2.12.0 <3.0.0"
|
||||||
|
|
Loading…
Reference in New Issue