[GUI] Fix build after Ben's chain_id changes
This commit is contained in:
parent
b4fddebf24
commit
888e174373
1 changed files with 2 additions and 1 deletions
|
|
@ -100,10 +100,11 @@ void GrapheneApplication::signTransaction(Transaction* transaction) const
|
||||||
return &model()->getAccount(id.instance.value)->accountObject().owner;
|
return &model()->getAccount(id.instance.value)->accountObject().owner;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
auto& chainId = model()->global_properties().chain_id;
|
||||||
auto& trx = transaction->internalTransaction();
|
auto& trx = transaction->internalTransaction();
|
||||||
trx.set_reference_block(model()->dynamic_global_properties().head_block_id);
|
trx.set_reference_block(model()->dynamic_global_properties().head_block_id);
|
||||||
flat_set<public_key_type> pubKeys = wallet()->getAvailablePrivateKeys();
|
flat_set<public_key_type> pubKeys = wallet()->getAvailablePrivateKeys();
|
||||||
auto requiredKeys = trx.get_required_signatures(pubKeys, getActiveAuth, getOwnerAuth);
|
auto requiredKeys = trx.get_required_signatures(chainId, pubKeys, getActiveAuth, getOwnerAuth);
|
||||||
trx.signatures = wallet()->signDigest(trx.digest(), requiredKeys);
|
trx.signatures = wallet()->signDigest(trx.digest(), requiredKeys);
|
||||||
idump((trx));
|
idump((trx));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue