Bug fixes and changed master address
This commit is contained in:
parent
6cc13901e2
commit
d56d2fa421
@ -488,12 +488,12 @@
|
||||
}
|
||||
let floData
|
||||
if (manageType === 'aggregator')
|
||||
floData = `KYC|APPROVE_KYC|${addresses.join(',')}`
|
||||
floData = `KYC|APPROVE_KYC|${addresses.join('+')}`
|
||||
else {
|
||||
const addressWithLabels = addresses.map((address, index) => {
|
||||
return `${address}:${addressLabels[index]}`
|
||||
})
|
||||
floData = `KYC|APPROVE_AGGREGATOR|${addressWithLabels.join(',')}`
|
||||
floData = `KYC|APPROVE_AGGREGATOR|${addressWithLabels.join('+')}`
|
||||
}
|
||||
console.log(floData)
|
||||
if (floData.length > 1040) {
|
||||
@ -541,9 +541,9 @@
|
||||
}
|
||||
let floData
|
||||
if (manageType === 'aggregator')
|
||||
floData = `KYC|REVOKE_KYC|${addresses.join(',')}`
|
||||
floData = `KYC|REVOKE_KYC|${addresses.join('+')}`
|
||||
else
|
||||
floData = `KYC|REVOKE_AGGREGATOR|${addresses.join(',')}`
|
||||
floData = `KYC|REVOKE_AGGREGATOR|${addresses.join('+')}`
|
||||
console.log(floData)
|
||||
getConfirmation('Revoke selected addresses?', {
|
||||
confirmText: 'Revoke',
|
||||
|
||||
@ -172,13 +172,13 @@ function getApprovedAggregators() {
|
||||
const [service, operationType, operationData, validity] = floData.split('|');
|
||||
switch (operationType) {
|
||||
case 'APPROVE_AGGREGATOR':
|
||||
operationData.split(',').forEach(aggregator => {
|
||||
operationData.split('+').forEach(aggregator => {
|
||||
const [address, label = ''] = aggregator.split(':');
|
||||
floGlobals.approvedKycAggregators[floCrypto.toFloID(address)] = label;
|
||||
});
|
||||
break;
|
||||
case 'REVOKE_AGGREGATOR':
|
||||
operationData.split(',').forEach(aggregator => {
|
||||
operationData.split('+').forEach(aggregator => {
|
||||
const [address, label = ''] = aggregator.split(':');
|
||||
delete floGlobals.approvedKycAggregators[floCrypto.toFloID(address)]
|
||||
});
|
||||
@ -210,7 +210,7 @@ function getApprovedKycs() {
|
||||
const [service, operationType, operationData, validity] = floData.split('|');
|
||||
switch (operationType) {
|
||||
case 'APPROVE_KYC':
|
||||
operationData.split(',').forEach(address => {
|
||||
operationData.split('+').forEach(address => {
|
||||
floGlobals.approvedKyc[address] = {
|
||||
validFrom: time * 1000,
|
||||
validTo: validity || Date.now() + 10000000,
|
||||
@ -219,7 +219,7 @@ function getApprovedKycs() {
|
||||
});
|
||||
break;
|
||||
case 'REVOKE_KYC':
|
||||
operationData.split(',').forEach(address => {
|
||||
operationData.split('+').forEach(address => {
|
||||
if (!floGlobals.approvedKyc[address]) return
|
||||
floGlobals.approvedKyc[address].validTo = time * 1000;
|
||||
floGlobals.approvedKyc[address].revokedBy = vin[0].addr;
|
||||
|
||||
@ -2,5 +2,5 @@ const floGlobals = {
|
||||
blockchain: "FLO",
|
||||
adminID: "FKAEdnPfjXLHSYwrXQu377ugN4tXU7VGdf",
|
||||
application: "KYC",
|
||||
masterAddress: 'FUT2sV3EJiLGgoLmpXW9jAFuhmWy35V5G6'
|
||||
masterAddress: 'FRSUrLuy5nhz6PCyuxMmo7vg9JmTFX5Goi'
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user