Skip to content

Commit

Permalink
Fix JS lints
Browse files Browse the repository at this point in the history
  • Loading branch information
agostbiro committed Dec 5, 2023
1 parent 9def29f commit 2e6b809
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const _handleError = (error: any): JsonRpcResponse => {
txHash = error.transactionHash;
}
if (error.data !== undefined) {
if (error.data?.data) {
if (error.data?.data !== undefined) {
returnData = error.data.data;
} else {
returnData = error.data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,14 @@ class EdrProviderWrapper extends EventEmitter implements EIP1193Provider {

const coinbase = config.coinbase ?? DEFAULT_COINBASE;

let fork = undefined;
let fork;
if (config.forkConfig !== undefined) {
fork = {
jsonRpcUrl: config.forkConfig.jsonRpcUrl,
blockNumber: config.forkConfig.blockNumber
? BigInt(config.forkConfig.blockNumber)
: undefined,
blockNumber:
config.forkConfig.blockNumber !== undefined
? BigInt(config.forkConfig.blockNumber)
: undefined,
};
}

Expand Down

0 comments on commit 2e6b809

Please sign in to comment.