Skip to content

feat(cheatcodes): add support for broadcasts with multiple wallets (vm.broadcast(string keystore)) #6198

@Sabnock01

Description

@Sabnock01

Component

Forge

Describe the feature you would like

Currently, it is not possible to run a script that uses multiple broadcasts with various accounts (those that use the overloaded vm.broadcast function that takes a private key) with cast wallets. You can provide a single wallet in the form of a keystore to the command that executes the script (--keystore) but there's no way to use multiple wallets with one script.

That is unless there's a way to derive the private key in Solidity (such as with vm.deriveKey) from a cast wallet that I'm not aware of.

I'm not sure as to what form this would take. Perhaps another overloaded vm.broadcast that takes the path to the JSON keystore?

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions