You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If we did any linking with assumed predeploys, we cant support multiple
139
-
// deployers.
140
-
//
141
-
// If we didn't do any linking with predeploys, then none of the contracts will
142
-
// change their code based on the sender, so we can skip relinking +
143
-
// reexecuting.
144
-
if !predeploy_libraries.is_empty(){
145
-
for tx in txs.iter(){
146
-
match tx {
147
-
TypedTransaction::Legacy(tx) => {
148
-
if tx.to.is_none(){
149
-
let sender = tx.from.expect("no sender");
150
-
ifletSome(ns) = new_sender {
151
-
if sender != ns {
152
-
panic!("Currently, only 1 contract deployer is possible per public function. This limitation may be lifted in the future but for safety/simplicity this is currently disallowed. Split deployment into more functions & run separately.")
153
-
}
154
-
}elseif sender != evm_opts.sender{
155
-
new_sender = Some(sender);
156
-
}
157
-
}
158
-
}
159
-
_ => unreachable!(),
160
-
}
161
-
}
162
-
}
163
-
}
164
-
165
-
// reexecute with the correct deployer after relinking contracts
166
-
ifletSome(new_sender) = new_sender {
167
-
// if we had a new sender that requires relinking, we need to
168
-
// get the nonce mainnet for accurate addresses for predeploy libs
169
-
let nonce = foundry_utils::next_nonce(new_sender, fork_url,None)?;
"No associated wallet for `from` address: {:?}. Unlocked wallets: {:?}",
601
+
"No associated wallet for `from` address: {:?}. Unlocked wallets: {:?}. \nMake sure you have loaded all the private keys including of the `--sender`.",
0 commit comments