build out rl and bug fixes

This commit is contained in:
Lipa Long
2020-08-18 10:59:45 -07:00
committed by Gene Hoffman
parent 4066cb7a73
commit 87dbe8ff07
5 changed files with 93 additions and 17 deletions
@@ -242,6 +242,16 @@ export const incomingReducer = (state = { ...initial_state }, action) => {
state["send_transaction_result"] = message.data;
return state;
}
else if (command === "rl_set_user_info") {
const success = data.success;
console.log("RL SET USER INFO SUCCESS")
console.log(success)
}
else if (command === "create_new_wallet") {
const success = data.success;
console.log("RL CREATE WALLET SUCCESS")
console.log(success)
}
return state;
default:
return state;
+3
View File
@@ -513,6 +513,7 @@ export const create_rl_admin = (interval, limit, pubkey, amount) => {
pubkey: pubkey,
amount: amount
};
console.log("CREATE RL ADMIN ACTION: ", action)
return action;
};
@@ -523,6 +524,7 @@ export const create_rl_user = () => {
wallet_type: "rl_wallet",
rl_type: "user"
};
console.log("CREATE RL USER ACTION: ", action)
return action;
};
@@ -572,6 +574,7 @@ export const rl_set_user_info = (wallet_id, interval, limit, origin_id, admin_pu
origin_id: origin_id,
admin_pubkey: admin_pubkey
};
console.log("RL SET USER INFO ACTION: ", action)
return action;
};