You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/server/tests/acceptance/sendRawTransactionExtension.spec.ts
+41-10Lines changed: 41 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
56
56
57
57
describe('Prechecks',function(){
58
58
describe('transactionSize',function(){
59
-
it('@release should execute "eth_sendRawTransaction" with regular transaction size within the limit',asyncfunction(){
59
+
it('@release should execute "eth_sendRawTransaction" with regular transaction size within the SEND_RAW_TRANSACTION_SIZE_LIMIT - 130kb limit',asyncfunction(){
60
60
constgasPrice=awaitrelay.gasPrice(requestId);
61
61
consttransaction={
62
62
type: 2,
@@ -79,7 +79,7 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
79
79
expect(info.result).to.equal('SUCCESS');
80
80
});
81
81
82
-
it('@release should fail "eth_sendRawTransaction" when transaction size exceeds the limit',asyncfunction(){
82
+
it('@release should fail "eth_sendRawTransaction" when transaction size exceeds the SEND_RAW_TRANSACTION_SIZE_LIMIT - 130kb limit',asyncfunction(){
83
83
constgasPrice=awaitrelay.gasPrice(requestId);
84
84
consttransaction={
85
85
type: 2,
@@ -104,7 +104,7 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
104
104
});
105
105
106
106
describe('callDataSize',function(){
107
-
it('@release should execute "eth_sendRawTransaction" with regular transaction size within the limit',asyncfunction(){
107
+
it('@release should execute "eth_sendRawTransaction" with regular transaction size within the CALL_DATA_SIZE_LIMIT - 128kb limit',asyncfunction(){
108
108
constgasPrice=awaitrelay.gasPrice(requestId);
109
109
consttransaction={
110
110
type: 2,
@@ -127,7 +127,7 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
127
127
expect(info.result).to.equal('SUCCESS');
128
128
});
129
129
130
-
it('@release should fail "eth_sendRawTransaction" when transaction size exceeds the limit',asyncfunction(){
130
+
it('@release should fail "eth_sendRawTransaction" when transaction size exceeds the CALL_DATA_SIZE_LIMIT - 128kb limit',asyncfunction(){
131
131
constgasPrice=awaitrelay.gasPrice(requestId);
132
132
consttransaction={
133
133
type: 2,
@@ -152,16 +152,18 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
152
152
});
153
153
154
154
describe('contractCodeSize',function(){
155
-
it('@release should execute "eth_sendRawTransaction" and deploy a contract with code size within the limit',asyncfunction(){
155
+
it('@release should execute "eth_sendRawTransaction" and deploy a contract with code size within the CONTRACT_CODE_SIZE_LIMIT - 24kb limit',asyncfunction(){
156
156
constgasPrice=awaitrelay.gasPrice(requestId);
157
+
158
+
// create a regular deployment transaction with contract code size within the CONTRACT_CODE_SIZE_LIMIT - 24kb limit
it('@release should pass precheck and execute "eth_sendRawTransaction" for a regular transaction i.e. non contract deployment transaction with data exceeding the limit',asyncfunction(){
203
+
it('@release should pass precheck and execute "eth_sendRawTransaction" for a regular transaction i.e. non contract deployment transaction with data exceeding the CONTRACT_CODE_SIZE_LIMIT - 24kb limit',asyncfunction(){
202
204
constgasPrice=awaitrelay.gasPrice(requestId);
203
205
// Create a transaction with large data but sent to an existing address (not contract creation)
204
206
consttransaction={
@@ -219,4 +221,33 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
219
221
});
220
222
});
221
223
});
224
+
225
+
describe('Jumbo Transaction',function(){
226
+
it('@release should execute "eth_sendRawTransaction" with Jumbo Transaction',asyncfunction(){
0 commit comments