|
|
|
@ -41,6 +41,7 @@ public class EthSendRawTransactionTest { |
|
|
|
|
|
|
|
|
|
private static final String VALID_TRANSACTION = |
|
|
|
|
"0xf86d0485174876e800830222e0945aae326516b4f8fe08074b7e972e40a713048d62880de0b6b3a7640000801ba05d4e7998757264daab67df2ce6f7e7a0ae36910778a406ca73898c9899a32b9ea0674700d5c3d1d27f2e6b4469957dfd1a1c49bf92383d80717afc84eb05695d5b"; |
|
|
|
|
|
|
|
|
|
@Mock private TransactionPool transactionPool; |
|
|
|
|
private EthSendRawTransaction method; |
|
|
|
|
|
|
|
|
@ -170,6 +171,12 @@ public class EthSendRawTransactionTest { |
|
|
|
|
TransactionInvalidReason.TX_SENDER_NOT_AUTHORIZED, JsonRpcError.TX_SENDER_NOT_AUTHORIZED); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void transactionWithIncorrectTransactionTypeIsRejected() { |
|
|
|
|
verifyErrorForInvalidTransaction( |
|
|
|
|
TransactionInvalidReason.INVALID_TRANSACTION_FORMAT, JsonRpcError.INVALID_TRANSACTION_TYPE); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void transactionWithFeeCapExceededIsRejected() { |
|
|
|
|
verifyErrorForInvalidTransaction( |
|
|
|
|