Skip to content

Commit c15999e

Browse files
UI: Overview page replace step with interpret_Transaction
1 parent 7f73c10 commit c15999e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/qt/overviewpage.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,15 @@ class TxViewDelegate : public QAbstractItemDelegate
133133
omniAmountStr = FormatDivisibleMP(total);
134134
}
135135
} else if (0 == parseRC) {
136-
if (0<=mp_obj.step1()) {
136+
if (mp_obj.interpret_Transaction()) {
137137
valid = getValidMPTX(hash);
138+
uint32_t omniPropertyId = mp_obj.getProperty();
139+
int64_t omniAmount = mp_obj.getAmount();
140+
if (isPropertyDivisible(omniPropertyId)) {
141+
omniAmountStr = FormatDivisibleShortMP(omniAmount) + getTokenLabel(omniPropertyId);
142+
} else {
143+
omniAmountStr = FormatIndivisibleMP(omniAmount) + getTokenLabel(omniPropertyId);
144+
}
138145
if (!mp_obj.getReceiver().empty()) {
139146
if (IsMyAddress(mp_obj.getReceiver())) {
140147
omniOutbound = false;
@@ -144,15 +151,6 @@ class TxViewDelegate : public QAbstractItemDelegate
144151
} else {
145152
address = QString::fromStdString(mp_obj.getSender());
146153
}
147-
if (0 == mp_obj.step2_Value()) {
148-
uint32_t omniPropertyId = mp_obj.getProperty();
149-
int64_t omniAmount = mp_obj.getAmount();
150-
if (isPropertyDivisible(omniPropertyId)) {
151-
omniAmountStr = FormatDivisibleShortMP(omniAmount) + getTokenLabel(omniPropertyId);
152-
} else {
153-
omniAmountStr = FormatIndivisibleMP(omniAmount) + getTokenLabel(omniPropertyId);
154-
}
155-
}
156154
}
157155
}
158156
}

0 commit comments

Comments
 (0)