|
|
|
@@ -93,7 +93,7 @@ async function transfer(symbol:string,from: Wallet, to: Wallet, amount: number = |
|
|
|
} |
|
|
|
); |
|
|
|
++nonce; |
|
|
|
console.log(tx); |
|
|
|
// console.log(tx); |
|
|
|
|
|
|
|
const signed = await issuer.signTransaction(tx); |
|
|
|
const pm = provider.send('eth_sendRawTransaction',[signed]); |
|
|
|
@@ -160,20 +160,11 @@ const holder1 = new Wallet('0xae6ae8e5ccbfb04590405997ee2d52d2b330726137b875053c |
|
|
|
const holder2 = new Wallet('0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',provider); |
|
|
|
|
|
|
|
async function main() { |
|
|
|
console.log(admin); |
|
|
|
console.log(issuer); |
|
|
|
// console.log(admin); |
|
|
|
// console.log(issuer); |
|
|
|
console.log(holder1); |
|
|
|
console.log(holder2); |
|
|
|
transfer('test001',holder2, holder1,1, 1); |
|
|
|
// info('BCG_TEST'); |
|
|
|
// for(let i = 13489; i < 13492; i++ ) { |
|
|
|
// try { |
|
|
|
// await send(i); |
|
|
|
// } catch(ex) { |
|
|
|
// console.log(ex); |
|
|
|
// } |
|
|
|
// await sleep(10); |
|
|
|
// } |
|
|
|
transfer('test001',holder1, holder2,1, 10000); |
|
|
|
} |
|
|
|
|
|
|
|
main(); |