@@ -313,9 +313,9 @@ describe('Contract', () => {
313313 . mockImplementation ( ( _objInstance , _tx ) => {
314314 const newContract = contract . clone ( ) ;
315315 newContract . options . address = deployedAddr ;
316- expect ( _tx . input ) . toBeDefined ( ) ;
316+ expect ( _tx . data ) . toBeDefined ( ) ;
317317 if (
318- _tx . input ===
318+ _tx . data ===
319319 '0xa41368620000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000548656c6c6f000000000000000000000000000000000000000000000000000000'
320320 ) {
321321 // eslint-disable-next-line
@@ -330,7 +330,7 @@ describe('Contract', () => {
330330
331331 const deployedContract = await contract
332332 . deploy ( {
333- input : GreeterBytecode ,
333+ data : GreeterBytecode ,
334334 arguments : [ 'My Greeting' ] ,
335335 } )
336336 . send ( sendOptions ) ;
@@ -340,7 +340,7 @@ describe('Contract', () => {
340340 spyTx . mockClear ( ) ;
341341 } ) ;
342342
343- it ( 'send method on deployed contract should work using data' , async ( ) => {
343+ it ( 'send method on deployed contract should work using data (default) ' , async ( ) => {
344344 const arg = 'Hello' ;
345345 const contract = new Contract ( GreeterAbi ) ;
346346 sendOptions = {
@@ -537,13 +537,13 @@ describe('Contract', () => {
537537
538538 const spyEthCall = jest . spyOn ( eth , 'call' ) . mockImplementation ( ( _objInstance , _tx ) => {
539539 expect ( _tx . to ) . toStrictEqual ( deployedAddr ) ;
540- expect ( _tx . input ) . toBe ( '0xcfae3217' ) ;
540+ expect ( _tx . data ) . toBe ( '0xcfae3217' ) ;
541541 // eslint-disable-next-line @typescript-eslint/no-unsafe-return
542542 return Promise . resolve ( encodedArg ) as any ; // contract class should decode encodedArg
543543 } ) ;
544544 const deployedContract = await contract
545545 . deploy ( {
546- input : GreeterBytecode ,
546+ data : GreeterBytecode ,
547547 arguments : [ 'My Greeting' ] ,
548548 } )
549549 . send ( sendOptions ) ;
@@ -759,7 +759,7 @@ describe('Contract', () => {
759759 // @ts -expect-error fix-types
760760 const spyEthCall = jest . spyOn ( eth , 'call' ) . mockImplementation ( ( _objInstance , _tx ) => {
761761 expect ( _tx . to ) . toBe ( '0x1230B93ffd14F2F022039675fA3fc3A46eE4C701' ) ;
762- expect ( _tx . input ) . toBe (
762+ expect ( _tx . data ) . toBe (
763763 '0x095ea7b300000000000000000000000000000000219ab540356cbb839cbe05303d7705fa0000000000000000000000000000000000000000000000000000000000000001' ,
764764 ) ;
765765 return '0x00' ;
@@ -1449,7 +1449,7 @@ describe('Contract', () => {
14491449 . spyOn ( eth , 'createAccessList' )
14501450 . mockImplementation ( ( _objInstance , _tx ) => {
14511451 expect ( _tx . to ) . toStrictEqual ( deployedAddr ) ;
1452- expect ( _tx . input ) . toBe ( '0xcfae3217' ) ;
1452+ expect ( _tx . data ) . toBe ( '0xcfae3217' ) ;
14531453 expect ( _tx . from ) . toBe ( fromAddr ) ;
14541454 // eslint-disable-next-line @typescript-eslint/no-unsafe-return
14551455 return Promise . resolve ( result ) as any ; // contract class should decode encodedArg
0 commit comments