Skip to content

Commit

Permalink
Make sure we copy the param
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Oct 18, 2024
1 parent bc59d22 commit 19f64ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export class RpcHandler implements IRpcEndpoint {
entryPoint,
queuedUserOperations,
true,
stateOverrides
deepHexlify({ ...stateOverrides })
)

let { verificationGasLimit, callGasLimit } =
Expand Down Expand Up @@ -541,7 +541,7 @@ export class RpcHandler implements IRpcEndpoint {
entryPoint,
queuedUserOperations,
false,
deepHexlify(stateOverrides)
deepHexlify({ ...stateOverrides })
)
} catch (err) {
this.logger.error({ error: err }, "Second simulations fail")
Expand Down

0 comments on commit 19f64ed

Please sign in to comment.