|
|
@ -27,6 +27,7 @@ import android.view.View; |
|
|
|
import androidx.lifecycle.ViewModelProviders; |
|
|
|
|
|
|
|
import com.cobo.coinlib.utils.Base43; |
|
|
|
import com.cobo.coinlib.utils.Coins; |
|
|
|
import com.cobo.cold.R; |
|
|
|
import com.cobo.cold.databinding.ElectrumTxBinding; |
|
|
|
import com.cobo.cold.db.entity.TxEntity; |
|
|
@ -101,7 +102,8 @@ public class ElectrumTxFragment extends BaseFragment<ElectrumTxBinding> { |
|
|
|
for (int i = 0; i < outputs.length(); i++) { |
|
|
|
JSONObject out = outputs.getJSONObject(i); |
|
|
|
items.add(new TransactionItem(i, |
|
|
|
out.getLong("value"), out.getString("address"))); |
|
|
|
out.getLong("value"), out.getString("address"), |
|
|
|
Coins.BTC.coinCode())); |
|
|
|
} |
|
|
|
} catch (JSONException e) { |
|
|
|
return; |
|
|
@ -128,7 +130,8 @@ public class ElectrumTxFragment extends BaseFragment<ElectrumTxBinding> { |
|
|
|
for (int i = 0; i < outputs.length(); i++) { |
|
|
|
items.add(new TransactionItem(i, |
|
|
|
outputs.getJSONObject(i).getLong("value"), |
|
|
|
outputs.getJSONObject(i).getString("address") |
|
|
|
outputs.getJSONObject(i).getString("address"), |
|
|
|
Coins.BTC.coinCode() |
|
|
|
)); |
|
|
|
} |
|
|
|
} catch (JSONException e) { |
|
|
|