@@ -127,57 +127,57 @@ describe('chain should work', () => {
127127 } ) ;
128128} , 20000 ) ;
129129
130- describe ( 'test multi transaction' , ( ) => {
131- beforeEach ( ( ) => {
132- httpProvider = new HttpProvider ( stageEndpoint ) ;
133- requestManager = new RequestManager ( httpProvider ) ;
134- chain = new Chain ( requestManager ) ;
135- } ) ;
136- test ( 'multi transaction option with number object refBlockNumberStrategy' , async ( ) => {
137- const aelf = new AElf ( new AElf . providers . HttpProvider ( stageEndpoint ) ) ;
138- const { GenesisContractAddress } = await aelf . chain . getChainStatus ( ) ;
139- expect (
140- chain . contractAt ( GenesisContractAddress , null , {
141- refBlockNumberStrategy : {
142- 9992731 : - 8 ,
143- 1931928 : - 8
144- } ,
145- multi : {
146- 9992731 : {
147- chainUrl : 'https://aelf-test-node.aelf.io/' ,
148- contractAddress : 'JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE'
149- } ,
150- 1931928 : {
151- chainUrl : 'https://tdvw-test-node.aelf.io/' ,
152- contractAddress : 'ASh2Wt7nSEmYqnGxPPzp4pnVDU4uhj1XW9Se5VeZcX2UDdyjx'
153- }
154- } ,
155- gatewayUrl : 'https://gateway-test.aelf.io'
156- } )
157- ) . resolves . not . toThrow ( ) ;
158- } ) ;
130+ // describe('test multi transaction', () => {
131+ // beforeEach(() => {
132+ // httpProvider = new HttpProvider(stageEndpoint);
133+ // requestManager = new RequestManager(httpProvider);
134+ // chain = new Chain(requestManager);
135+ // });
136+ // test('multi transaction option with number object refBlockNumberStrategy', async () => {
137+ // const aelf = new AElf(new AElf.providers.HttpProvider(stageEndpoint));
138+ // const { GenesisContractAddress } = await aelf.chain.getChainStatus();
139+ // expect(
140+ // chain.contractAt(GenesisContractAddress, null, {
141+ // refBlockNumberStrategy: {
142+ // 9992731: -8,
143+ // 1931928: -8
144+ // },
145+ // multi: {
146+ // 9992731: {
147+ // chainUrl: 'https://aelf-test-node.aelf.io/',
148+ // contractAddress: 'JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE'
149+ // },
150+ // 1931928: {
151+ // chainUrl: 'https://tdvw-test-node.aelf.io/',
152+ // contractAddress: 'ASh2Wt7nSEmYqnGxPPzp4pnVDU4uhj1XW9Se5VeZcX2UDdyjx'
153+ // }
154+ // },
155+ // gatewayUrl: 'https://gateway-test.aelf.io'
156+ // })
157+ // ).resolves.not.toThrow();
158+ // });
159159
160- test ( 'multi transaction option without number object refBlockNumberStrategy' , async ( ) => {
161- const aelf = new AElf ( new AElf . providers . HttpProvider ( stageEndpoint ) ) ;
162- const { GenesisContractAddress } = await aelf . chain . getChainStatus ( ) ;
163- expect (
164- chain . contractAt ( GenesisContractAddress , null , {
165- refBlockNumberStrategy : {
166- 9992731 : 'test' ,
167- 1931928 : 'invalid'
168- } ,
169- multi : {
170- 9992731 : {
171- chainUrl : 'https://aelf-test-node.aelf.io/' ,
172- contractAddress : 'JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE'
173- } ,
174- 1931928 : {
175- chainUrl : 'https://tdvw-test-node.aelf.io/' ,
176- contractAddress : 'ASh2Wt7nSEmYqnGxPPzp4pnVDU4uhj1XW9Se5VeZcX2UDdyjx'
177- }
178- } ,
179- gatewayUrl : 'https://gateway-test.aelf.io'
180- } )
181- ) . resolves . not . toThrow ( ) ;
182- } ) ;
183- } ) ;
160+ // test('multi transaction option without number object refBlockNumberStrategy', async () => {
161+ // const aelf = new AElf(new AElf.providers.HttpProvider(stageEndpoint));
162+ // const { GenesisContractAddress } = await aelf.chain.getChainStatus();
163+ // expect(
164+ // chain.contractAt(GenesisContractAddress, null, {
165+ // refBlockNumberStrategy: {
166+ // 9992731: 'test',
167+ // 1931928: 'invalid'
168+ // },
169+ // multi: {
170+ // 9992731: {
171+ // chainUrl: 'https://aelf-test-node.aelf.io/',
172+ // contractAddress: 'JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE'
173+ // },
174+ // 1931928: {
175+ // chainUrl: 'https://tdvw-test-node.aelf.io/',
176+ // contractAddress: 'ASh2Wt7nSEmYqnGxPPzp4pnVDU4uhj1XW9Se5VeZcX2UDdyjx'
177+ // }
178+ // },
179+ // gatewayUrl: 'https://gateway-test.aelf.io'
180+ // })
181+ // ).resolves.not.toThrow();
182+ // });
183+ // });
0 commit comments