Simon Lee 1 year ago
parent
commit
f6939e643b
2 changed files with 8 additions and 9 deletions
  1. 2
    2
      TC2/start.ts
  2. 6
    7
      TC9/start.ts

+ 2
- 2
TC2/start.ts View File

@@ -261,8 +261,8 @@ const holder2 = new Wallet('0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae
console.log(`목적 서버 : ${gateWay}`);

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();

+ 6
- 7
TC9/start.ts View File

@@ -114,17 +114,16 @@ async function main() {
console.log(holder1.address);
console.log(holder2.address);


// 전송데이타 생성
// const tx = await getTransferData('test001',holder2, holder1,1);
// 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();

Loading…
Cancel
Save