@@ -31,7 +31,6 @@ describe('@erc20 Acceptance Tests', async function () {
3131 const accounts : AliasAccount [ ] = [ ] ;
3232 let initialHolder ;
3333 let anotherAccount ;
34- let requestId ;
3534 let recipient ;
3635
3736 const contracts : [ any ] = [ ] ;
@@ -46,11 +45,9 @@ describe('@erc20 Acceptance Tests', async function () {
4645 ] ;
4746
4847 this . beforeAll ( async ( ) => {
49- requestId = Utils . generateRequestId ( ) ;
50-
51- accounts [ 0 ] = await servicesNode . createAliasAccount ( 60 , relay . provider , requestId ) ;
52- accounts [ 1 ] = await servicesNode . createAliasAccount ( 30 , relay . provider , requestId ) ;
53- accounts [ 2 ] = await servicesNode . createAliasAccount ( 30 , relay . provider , requestId ) ;
48+ accounts [ 0 ] = await servicesNode . createAliasAccount ( 60 , relay . provider ) ;
49+ accounts [ 1 ] = await servicesNode . createAliasAccount ( 30 , relay . provider ) ;
50+ accounts [ 2 ] = await servicesNode . createAliasAccount ( 30 , relay . provider ) ;
5451
5552 initialHolder = accounts [ 0 ] . address ;
5653 recipient = accounts [ 1 ] . address ;
@@ -77,15 +74,10 @@ describe('@erc20 Acceptance Tests', async function () {
7774 [ accounts [ 1 ] , accounts [ 2 ] ] ,
7875 accounts [ 0 ] ,
7976 servicesNode ,
80- requestId ,
8177 ) ,
8278 ) ;
8379 } ) ;
8480
85- this . beforeEach ( async ( ) => {
86- requestId = Utils . generateRequestId ( ) ;
87- } ) ;
88-
8981 for ( const i in testTitles ) {
9082 describe ( testTitles [ i ] . testName , async function ( ) {
9183 let contract ;
@@ -107,7 +99,7 @@ describe('@erc20 Acceptance Tests', async function () {
10799 } ) ;
108100
109101 it ( 'Relay can execute "eth_getCode" for ERC20 contract with evmAddress' , async function ( ) {
110- const res = await relay . call ( 'eth_getCode' , [ contract . target , 'latest' ] , requestId ) ;
102+ const res = await relay . call ( 'eth_getCode' , [ contract . target , 'latest' ] ) ;
111103 expect ( res ) . to . be . equal (
112104 testTitles [ i ] . expectedBytecode ?? CommonService . redirectBytecodeAddressReplace ( contract . target ) ,
113105 ) ;
@@ -201,7 +193,7 @@ describe('@erc20 Acceptance Tests', async function () {
201193 before ( async function ( ) {
202194 tx = await contract
203195 . connect ( tokenOwnerWallet )
204- . approve ( spender , initialSupply , await Utils . gasOptions ( requestId ) ) ;
196+ . approve ( spender , initialSupply , await Utils . gasOptions ( ) ) ;
205197 receipt = await tx . wait ( ) ;
206198 // 5 seconds sleep to propagate the changes to mirror node
207199 await new Promise ( ( r ) => setTimeout ( r , 5000 ) ) ;
@@ -230,7 +222,7 @@ describe('@erc20 Acceptance Tests', async function () {
230222 it ( 'transfers the requested amount' , async function ( ) {
231223 tx = await contract
232224 . connect ( spenderWallet )
233- . transferFrom ( tokenOwner , to , initialSupply , await Utils . gasOptions ( requestId ) ) ;
225+ . transferFrom ( tokenOwner , to , initialSupply , await Utils . gasOptions ( ) ) ;
234226 const receipt = await tx . wait ( ) ;
235227 // 5 seconds sleep to propagate the changes to mirror node
236228 await new Promise ( ( r ) => setTimeout ( r , 5000 ) ) ;
@@ -260,10 +252,8 @@ describe('@erc20 Acceptance Tests', async function () {
260252
261253 beforeEach ( 'reducing balance' , async function ( ) {
262254 amount = initialSupply ;
263- await contract
264- . connect ( tokenOwnerWallet )
265- . approve ( spender , initialSupply , await Utils . gasOptions ( requestId ) ) ;
266- await contract . transfer ( to , 1 , await Utils . gasOptions ( requestId ) ) ;
255+ await contract . connect ( tokenOwnerWallet ) . approve ( spender , initialSupply , await Utils . gasOptions ( ) ) ;
256+ await contract . transfer ( to , 1 , await Utils . gasOptions ( ) ) ;
267257 // 5 seconds sleep to propagate the changes to mirror node
268258 await new Promise ( ( r ) => setTimeout ( r , 5000 ) ) ;
269259 } ) ;
@@ -292,15 +282,15 @@ describe('@erc20 Acceptance Tests', async function () {
292282 } ) ;
293283
294284 beforeEach ( async function ( ) {
295- await contract . approve ( spender , allowance , await Utils . gasOptions ( requestId ) ) ;
285+ await contract . approve ( spender , allowance , await Utils . gasOptions ( ) ) ;
296286 } ) ;
297287
298288 describe ( 'when the token owner has enough balance' , function ( ) {
299289 let amount ;
300290 before ( async function ( ) {
301291 allowance = initialSupply - BigInt ( 1 ) ;
302292 amount = initialSupply ;
303- await contract . approve ( spender , allowance , await Utils . gasOptions ( requestId ) ) ;
293+ await contract . approve ( spender , allowance , await Utils . gasOptions ( ) ) ;
304294 } ) ;
305295
306296 it ( 'reverts' , async function ( ) {
@@ -325,7 +315,7 @@ describe('@erc20 Acceptance Tests', async function () {
325315 } ) ;
326316
327317 beforeEach ( 'reducing balance' , async function ( ) {
328- await contract . transfer ( to , 2 , await Utils . gasOptions ( requestId ) ) ;
318+ await contract . transfer ( to , 2 , await Utils . gasOptions ( ) ) ;
329319 } ) ;
330320
331321 it ( 'reverts' , async function ( ) {
@@ -352,7 +342,7 @@ describe('@erc20 Acceptance Tests', async function () {
352342 amount = initialSupply ;
353343 to = ethers . ZeroAddress ;
354344 tokenOwnerWallet = accounts [ 2 ] . wallet ;
355- await contract . connect ( tokenOwnerWallet ) . approve ( spender , amount , await Utils . gasOptions ( requestId ) ) ;
345+ await contract . connect ( tokenOwnerWallet ) . approve ( spender , amount , await Utils . gasOptions ( ) ) ;
356346 } ) ;
357347
358348 it ( 'reverts' , async function ( ) {
0 commit comments