Skip to content

Commit

Permalink
FIX TYPO 'Rip7650' -> 'Rip7560'
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Feb 14, 2024
1 parent fbb95cc commit 314c850
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/bundler/src/BundlerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface BundlerConfig {
autoBundleInterval: number
autoBundleMempoolSize: number

useRip7650Mode: boolean
useRip7560Mode: boolean
}

// TODO: implement merging config (args -> config.js -> default) and runtime shape validation
Expand All @@ -48,7 +48,7 @@ export const BundlerConfigShape = {
autoBundleInterval: ow.number,
autoBundleMempoolSize: ow.number,

useRip7650Mode: ow.boolean
useRip7560Mode: ow.boolean
}

// TODO: consider if we want any default fields at all
Expand All @@ -60,5 +60,5 @@ export const bundlerConfigDefault: Partial<BundlerConfig> = {
conditionalRpc: false,
minStake: MIN_STAKE_VALUE,
minUnstakeDelay: MIN_UNSTAKE_DELAY,
useRip7650Mode: false
useRip7560Mode: false
}
6 changes: 3 additions & 3 deletions packages/bundler/src/BundlerServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class BundlerServer {
}

async _preflightCheck (): Promise<void> {
if (this.config.useRip7650Mode) {
if (this.config.useRip7560Mode) {
return
}
if (await this.provider.getCode(this.config.entryPoint) === '0x') {
Expand Down Expand Up @@ -169,7 +169,7 @@ export class BundlerServer {
switch (method) {
/** RIP-7560 specific RPC API */
case 'eth_sendTransaction':
if (!this.config.useRip7650Mode) {
if (!this.config.useRip7560Mode) {
throw new RpcError(`Method ${method} is not supported`, -32601)
}
if (params[0].sender != null) {
Expand All @@ -179,7 +179,7 @@ export class BundlerServer {
}
break
case 'eth_getTransactionReceipt':
if (!this.config.useRip7650Mode) {
if (!this.config.useRip7560Mode) {
throw new RpcError(`Method ${method} is not supported`, -32601)
}
result = await this.rip7560methodHandler.getRIP7560TransactionReceipt(params[0])
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler/src/modules/initServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function initServer (config: BundlerConfig, signer: Signer): [ExecutionMa
const eventsManager = new EventsManager(entryPoint, mempoolManager, reputationManager)
let validationManager: IValidationManager
let bundleManager: IBundleManager
if (config.useRip7650Mode) {
if (config.useRip7560Mode) {
validationManager = new RIP7560ValidationManager()
bundleManager = new RIP7560BundleManager(mempoolManager, validationManager, reputationManager, config.maxBundleGas, entryPoint.provider as JsonRpcProvider)
} else {
Expand Down
4 changes: 2 additions & 2 deletions packages/bundler/src/runBundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export async function runBundler (argv: string[], overrideExit = true): Promise<
.option('--debugRpc', 'enable debug rpc methods (auto-enabled for test node')
.option('--conditionalRpc', 'Use eth_sendRawTransactionConditional RPC)')
.option('--show-stack-traces', 'Show stack traces.')
.option('--useRip7650Mode', 'Use this bundler for RIP-7560 node instead of ERC-4337 (experimental).')
.option('--useRip7560Mode', 'Use this bundler for RIP-7560 node instead of ERC-4337 (experimental).')
.option('--createMnemonic <file>', 'create the mnemonic file')

const programOpts = program.parse(argv).opts()
Expand Down Expand Up @@ -108,7 +108,7 @@ export async function runBundler (argv: string[], overrideExit = true): Promise<
console.log('== debugrpc already st', config.debugRpc)
}

if (!config.useRip7650Mode) {
if (!config.useRip7560Mode) {
const addr = await new DeterministicDeployer(provider as any).deterministicDeploy(EntryPoint__factory.bytecode)
console.log('deployed EntryPoint at', addr)
if ((await wallet.getBalance()).eq(0)) {
Expand Down

0 comments on commit 314c850

Please sign in to comment.