mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
compare pubkeys direct in json call
This commit is contained in:
parent
9bcd56f969
commit
c709b9b284
@ -121,8 +121,12 @@ Poco::JSON::Object* JsonCreateTransaction::transfer(Poco::Dynamic::Var params)
|
||||
result = stateError("user not in group", "receiver user isn't in target group");
|
||||
}
|
||||
}
|
||||
auto sender_user = mSession->getNewUser();
|
||||
if (sender_user->getGradidoKeyPair()->isTheSame(*target_pubkey)) {
|
||||
result = stateError("sender and receiver are the same");
|
||||
}
|
||||
if (!result) {
|
||||
auto transaction = model::gradido::Transaction::createTransfer(mSession->getNewUser(), target_pubkey, mTargetGroup, amount, mMemo, mBlockchainType);
|
||||
auto transaction = model::gradido::Transaction::createTransfer(sender_user, target_pubkey, mTargetGroup, amount, mMemo, mBlockchainType);
|
||||
|
||||
if (mAutoSign) {
|
||||
Poco::JSON::Array errors;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user