Skip to content

Commit

Permalink
remove 0x from bundler key
Browse files Browse the repository at this point in the history
  • Loading branch information
norswap committed Sep 29, 2023
1 parent 8162a3a commit 6082374
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion account_abstraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,13 @@ def start_bundler(config: Config):
Start the stackup bundler.
"""

bundler_key = config.bundler_key
if bundler_key.startswith("0x"):
bundler_key = bundler_key[2:]

env = {**os.environ,
"ERC4337_BUNDLER_ETH_CLIENT_URL": config.l2_engine_rpc,
"ERC4337_BUNDLER_PRIVATE_KEY": config.bundler_key}
"ERC4337_BUNDLER_PRIVATE_KEY": bundler_key}

log_file_path = "logs/stackup_bundler.log"
log_file = open(log_file_path, "w")
Expand Down

0 comments on commit 6082374

Please sign in to comment.