File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,13 @@ export async function dryrun({
177177 . div ( 100 ) ;
178178 if ( gasLimit . isZero ( ) ) {
179179 throw new ExecutionRevertedError ( {
180+ cause : new BaseError ( "RPC returned 0 for eth_estimateGas" , {
181+ cause : new Error (
182+ "Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection" ,
183+ ) ,
184+ } ) ,
180185 message :
181- "Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection" ,
186+ "Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection" ,
182187 } ) ;
183188 }
184189 rawtx . gas = gasLimit . toBigInt ( ) ;
Original file line number Diff line number Diff line change @@ -179,8 +179,13 @@ export async function dryrun({
179179 . div ( 100 ) ;
180180 if ( gasLimit . isZero ( ) ) {
181181 throw new ExecutionRevertedError ( {
182+ cause : new BaseError ( "RPC returned 0 for eth_estimateGas" , {
183+ cause : new Error (
184+ "Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection" ,
185+ ) ,
186+ } ) ,
182187 message :
183- "Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection" ,
188+ "Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection" ,
184189 } ) ;
185190 }
186191 rawtx . gas = gasLimit . toBigInt ( ) ;
Original file line number Diff line number Diff line change @@ -243,8 +243,13 @@ export async function dryrun({
243243 . div ( 100 ) ;
244244 if ( gasLimit . isZero ( ) ) {
245245 throw new ExecutionRevertedError ( {
246+ cause : new BaseError ( "RPC returned 0 for eth_estimateGas" , {
247+ cause : new Error (
248+ "Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection" ,
249+ ) ,
250+ } ) ,
246251 message :
247- "Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection" ,
252+ "Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection" ,
248253 } ) ;
249254 }
250255 rawtx . gas = gasLimit . toBigInt ( ) ;
You can’t perform that action at this time.
0 commit comments