-
+
@@ -38,7 +38,7 @@
+
-
- {{ $n(item.balance / 10000) }}
+ {{ $n(item.balance) }}
GDD
{{ item.name }}
@@ -106,8 +106,8 @@
export default {
name: 'GddTable',
props: {
- showTransactionList: { type: Boolean, default: true },
transactions: { default: [] },
+ max: { type: Number, default: 25 },
},
data() {
return {
diff --git a/login_server/src/cpp/JSONInterface/JsonCreateTransaction.cpp b/login_server/src/cpp/JSONInterface/JsonCreateTransaction.cpp
index 7473b178f..381ded7e5 100644
--- a/login_server/src/cpp/JSONInterface/JsonCreateTransaction.cpp
+++ b/login_server/src/cpp/JSONInterface/JsonCreateTransaction.cpp
@@ -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;