Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 committed Jan 4, 2024
1 parent a966ea6 commit 7e6a01a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import org.apache.tuweni.bytes.Bytes;
import org.apache.tuweni.bytes.Bytes32;
import org.apache.tuweni.units.bigints.UInt256;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
Expand All @@ -51,7 +50,7 @@ static Iterable<Arguments> params() {
void shouldReturnChainId(final String chainIdString, final int expectedGas) {
Bytes32 chainId = Bytes32.fromHexString(chainIdString);
ChainIdOperation operation = new ChainIdOperation(new ConstantinopleGasCalculator(), chainId);
final ArgumentCaptor<Bytes> arg = ArgumentCaptor.forClass(UInt256.class);
final ArgumentCaptor<Bytes> arg = ArgumentCaptor.forClass(Bytes.class);
when(messageFrame.getRemainingGas()).thenReturn(100L);
operation.execute(messageFrame, null);
Mockito.verify(messageFrame).getRemainingGas();
Expand Down

0 comments on commit 7e6a01a

Please sign in to comment.