The broadcasts emitted by a script.Host have a Broadcast.From address, that should define which key is used for signing and publishing a broadcast tx-candidate.
The OPCM deployer code configures a single deployer key, that the script is boostrapped with.
When the hooks are then called, the from-address should be retained. And then when asked to broadcast the txs, it should error if the broadcast tries to use a different sender-address as the main deployer key.
The broadcasts emitted by a
script.Host
have aBroadcast.From
address, that should define which key is used for signing and publishing a broadcast tx-candidate. The OPCM deployer code configures a single deployer key, that the script is boostrapped with.When the hooks are then called, the from-address should be retained. And then when asked to broadcast the txs, it should error if the broadcast tries to use a different sender-address as the main deployer key.