1
This commit is contained in:
parent
af3f8a5999
commit
c566181c04
@ -6,18 +6,6 @@ const metaFactory = require('../metadata/factory');
|
||||
const serviceFactory = require('../services/factory');
|
||||
|
||||
async function activate721Nft(session) {
|
||||
const bc = serviceFactory.create('BlockChain');
|
||||
{
|
||||
const ret = await bc.init(13473);
|
||||
if (!ret) {
|
||||
session.rspErr(500, 'net_id error');
|
||||
return;
|
||||
}
|
||||
}
|
||||
const lockContractInstance = bc.getInstanceByName('NFTLock');
|
||||
console.log(lockContractInstance);
|
||||
session.rspData({});
|
||||
return;
|
||||
try {
|
||||
const account = bcutils.toNormalAddress(session.request('account'));
|
||||
const netId = session.request('net_id');
|
||||
@ -42,8 +30,8 @@ async function activate721Nft(session) {
|
||||
|
||||
const nftAddress = bc.getNftAddress(tokenType);
|
||||
const userAddress = bc.getUserAddress();
|
||||
|
||||
const lockContractInstance = bc.getContractAddress('NFTLock');
|
||||
const thisContractAddress = bc.getContractAddressByName('NFTLock');
|
||||
const instance = bc.getInstanceByName('NFTLock');
|
||||
|
||||
const transModel = session.createModel('Transaction');
|
||||
const usedTokenIdModel = session.createModel('UsedTokenId');
|
||||
@ -94,7 +82,6 @@ async function activate721Nft(session) {
|
||||
[
|
||||
['trans_id', transId]
|
||||
]);
|
||||
const thisContractAddress = '';
|
||||
const nonce = transId;
|
||||
const tokenIds = [tokenId, 1];
|
||||
utils.arrayToStrings(tokenIds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user