Skip to content

Commit

Permalink
Merge pull request #103 from flashbots/add-coinbase-to-simulate
Browse files Browse the repository at this point in the history
Pass along optional coinbase parameter, supported by eth_callBundle
  • Loading branch information
epheph authored May 19, 2023
2 parents ef957e2 + 4c0f8a8 commit 53e1042
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,8 @@ export class FlashbotsBundleProvider extends providers.JsonRpcProvider {
signedBundledTransactions: Array<string>,
blockTag: BlockTag,
stateBlockTag?: BlockTag,
blockTimestamp?: number
blockTimestamp?: number,
coinbase?: string
): Promise<SimulationResponse> {
let evmBlockNumber: string
if (typeof blockTag === 'number') {
Expand All @@ -863,7 +864,8 @@ export class FlashbotsBundleProvider extends providers.JsonRpcProvider {
txs: signedBundledTransactions,
blockNumber: evmBlockNumber,
stateBlockNumber: evmBlockStateNumber,
timestamp: blockTimestamp
timestamp: blockTimestamp,
coinbase
}
]
const request = JSON.stringify(this.prepareRelayRequest('eth_callBundle', params))
Expand Down

0 comments on commit 53e1042

Please # to comment.