File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments