Skip to content

Commit

Permalink
device/trezor: dummy payment ID fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Feb 20, 2019
1 parent 31bdf7b commit 75e5aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device_trezor/device_trezor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ namespace trezor {

const bool nonce_required = tdata.tsx_data.has_payment_id() && tdata.tsx_data.payment_id().size() > 0;
const bool has_nonce = cryptonote::find_tx_extra_field_by_type(tx_extra_fields, nonce);
CHECK_AND_ASSERT_THROW_MES(has_nonce == nonce_required, "Transaction nonce presence inconsistent");
CHECK_AND_ASSERT_THROW_MES(has_nonce || !nonce_required, "Transaction nonce not present");

if (nonce_required){
const std::string & payment_id = tdata.tsx_data.payment_id();
Expand Down

0 comments on commit 75e5aaf

Please sign in to comment.