1
This commit is contained in:
parent
0d05ee4199
commit
5e422b109a
@ -10,6 +10,7 @@ async function buy(session) {
|
||||
const account = bcutils.toNormalAddress(session.request('account', ''));
|
||||
const netId = session.request('net_id');
|
||||
const price = session.request('price');
|
||||
const currencyName = session.request('currency_name');
|
||||
const bc = serviceFactory.create('BlockChain');
|
||||
{
|
||||
const ret = await bc.init(netId);
|
||||
@ -25,7 +26,7 @@ async function buy(session) {
|
||||
}
|
||||
}
|
||||
|
||||
const currency = bc.getContractAddressByName(contract.CEG_INSTANCE_NAME);
|
||||
const currency = bc.getContractAddressByName(currencyName);
|
||||
const userAddress = bc.getUserAddress();
|
||||
{
|
||||
if (!bc.isValidAddress(currency)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user