admin
This commit is contained in:
@@ -27,6 +27,16 @@ module.exports = {
|
||||
},
|
||||
async sendVIC2User (toAddress, amount, option = {}) {
|
||||
const account = ERC20.fromMnemonic(VICSECWORD, VICCONTRACTADDR);
|
||||
return await account.transfer(toAddress, amount, Object.assign(option, { decimals: 18 }));
|
||||
return await account.transfer(toAddress, amount, Object.assign(option, { decimals: 18 })).then(res => {
|
||||
return {
|
||||
success: true,
|
||||
res
|
||||
};
|
||||
}).catch(err => {
|
||||
return {
|
||||
error: err,
|
||||
res: null
|
||||
};
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user