Simon Lee 1 年之前
父節點
當前提交
f6939e643b
共有 2 個文件被更改,包括 8 次插入9 次删除
  1. 2
    2
      TC2/start.ts
  2. 6
    7
      TC9/start.ts

+ 2
- 2
TC2/start.ts 查看文件

console.log(`목적 서버 : ${gateWay}`); console.log(`목적 서버 : ${gateWay}`);


async function main() { async function main() {
spareToken('BCG_TEST');
//transfer(holder1,'BCG_TEST',holder2, holder1,1, 1000);
//spareToken('BCG_TEST');
transfer(holder1,'BCG_TEST',holder2, holder1,1, 1000);
} }


main(); main();

+ 6
- 7
TC9/start.ts 查看文件

console.log(holder1.address); console.log(holder1.address);
console.log(holder2.address); console.log(holder2.address);



// 전송데이타 생성
// const tx = await getTransferData('test001',holder2, holder1,1); // const tx = await getTransferData('test001',holder2, holder1,1);
// console.log(tx); // console.log(tx);


// console.log('holder2를 오퍼레이터로 등록하는 txData');
// const tx = await getOperatorGrantData('test001',admin,holder2);
// console.log(tx);
console.log('holder2를 오퍼레이터로 등록하는 txData');
const tx = await getOperatorGrantData('test001',admin,holder2);
console.log(tx);


await revokeOperator('test001',holder2.address);
await printOperator('test001');
// await revokeOperator('test001',holder2.address);
// await printOperator('test001');
} }


main(); main();

Loading…
取消
儲存