@@ -3,9 +3,8 @@ import Signer from '../../src/Signer';
33import { TestProvider } from '../TestProvider' ;
44import { libs } from '@waves/waves-transactions' ;
55
6-
76const MASTER_ADDRESS = libs . crypto . address ( ACCOUNTS . SIMPLE . seed , NETWORK_BYTE ) ;
8- let waves : Signer = new Signer ( ) ;
7+ let waves : Signer ;
98let provider : TestProvider = new TestProvider ( ACCOUNTS . SIMPLE . seed ) ;
109
1110beforeEach ( ( ) => {
@@ -24,11 +23,13 @@ it('Transfer Signer', async () => {
2423} ) ;
2524
2625it ( 'Transfer custom asset' , async ( ) => {
27- const [ { id } ] = await waves . issue ( {
28- name : 'Bitcoin' ,
29- decimals : 8 ,
30- quantity : 10000 ,
31- } ) . broadcast ( ) ;
26+ const [ { id } ] = await waves
27+ . issue ( {
28+ name : 'Bitcoin' ,
29+ decimals : 8 ,
30+ quantity : 10000 ,
31+ } )
32+ . broadcast ( ) ;
3233
3334 await waves
3435 . transfer ( {
@@ -40,11 +41,13 @@ it('Transfer custom asset', async () => {
4041} ) ;
4142
4243it ( 'Transfer two transactions' , async ( ) => {
43- const [ { id } ] = await waves . issue ( {
44- name : 'Bitcoin' ,
45- decimals : 8 ,
46- quantity : 10000 ,
47- } ) . broadcast ( ) ;
44+ const [ { id } ] = await waves
45+ . issue ( {
46+ name : 'Bitcoin' ,
47+ decimals : 8 ,
48+ quantity : 10000 ,
49+ } )
50+ . broadcast ( ) ;
4851
4952 await waves
5053 . transfer ( {
@@ -61,11 +64,13 @@ it('Transfer two transactions', async () => {
6164} ) ;
6265
6366it ( 'Transfer smart asset' , async ( ) => {
64- const [ { id } ] = await waves . issue ( {
65- name : 'Bitcoin' ,
66- decimals : 8 ,
67- quantity : 10000 ,
68- } ) . broadcast ( ) ;
67+ const [ { id } ] = await waves
68+ . issue ( {
69+ name : 'Bitcoin' ,
70+ decimals : 8 ,
71+ quantity : 10000 ,
72+ } )
73+ . broadcast ( ) ;
6974
7075 const [ tx ] = await waves
7176 . transfer ( {
@@ -82,26 +87,26 @@ it('Transfer smart asset', async () => {
8287it ( 'Mass transfer Signer' , async ( ) => {
8388 await waves
8489 . massTransfer ( {
85- transfers : [
86- { recipient : MASTER_ADDRESS , amount : Math . pow ( 10 , 8 ) }
87- ] ,
90+ transfers : [ { recipient : MASTER_ADDRESS , amount : Math . pow ( 10 , 8 ) } ] ,
91+ attachment : null ,
8892 } )
8993 . broadcast ( ) ;
9094} ) ;
9195
9296it ( 'Mass transfer asset' , async ( ) => {
93- const [ { id } ] = await waves . issue ( {
94- name : 'Bitcoin' ,
95- decimals : 8 ,
96- quantity : 10000 ,
97- } ) . broadcast ( ) ;
97+ const [ { id } ] = await waves
98+ . issue ( {
99+ name : 'Bitcoin' ,
100+ decimals : 8 ,
101+ quantity : 10000 ,
102+ } )
103+ . broadcast ( ) ;
98104
99105 await waves
100106 . massTransfer ( {
101107 assetId : id ,
102- transfers : [
103- { recipient : MASTER_ADDRESS , amount : Math . pow ( 10 , 8 ) } ,
104- ] ,
108+ transfers : [ { recipient : MASTER_ADDRESS , amount : Math . pow ( 10 , 8 ) } ] ,
109+ attachment : null ,
105110 } )
106111 . broadcast ( ) ;
107112} ) ;
0 commit comments