Merge pull request #8 from worldcoin/osiris/environment #17
Annotations
14 warnings
Test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
src/main.rs#L164
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> src/main.rs:164:46
|
164 | cfg.bridged_networks.iter().for_each(|n| match n.ty {
| ______________________________________________^
165 | | NetworkType::Evm => {
166 | | match &cfg.canonical_network.wallet {
167 | | WalletConfig::Mnemonic { mnemonic } => {
... |
213 | | _ => {}
214 | | });
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
= note: `#[warn(clippy::single_match)]` on by default
help: try
|
164 ~ cfg.bridged_networks.iter().for_each(|n| if let NetworkType::Evm = n.ty {
165 + match &cfg.canonical_network.wallet {
166 + WalletConfig::Mnemonic { mnemonic } => {
167 + let signer = MnemonicBuilder::<English>::default()
168 + .phrase(mnemonic)
169 + .index(0)
170 + .unwrap()
171 + .build()
172 + .expect("Failed to build wallet");
173 + let wallet = EthereumWallet::new(signer);
174 + let l1_provider = ProviderBuilder::default()
175 + .with_recommended_fillers()
176 + .wallet(wallet)
177 + .on_http(
178 + cfg.canonical_network.provider.rpc_endpoint.clone(),
179 + );
180 + let state_bridge = IStateBridgeInstance::new(
181 + n.state_bridge_address,
182 + l1_provider,
183 + );
184 +
185 + let signer = AlloySigner::new(state_bridge);
186 +
187 + relayers.push(Relayer::Evm(EVMRelay::new(
188 + Signer::AlloySigner(signer),
189 + n.world_id_address,
190 + n.provider.rpc_endpoint.clone(),
191 + )));
192 + }
193 + WalletConfig::TxSitter {
194 + url,
195 + address: _,
196 + gas_limit,
197 + } => {
198 + let signer = TxSitterSigner::new(
199 + url.as_str(),
200 + n.state_bridge_address,
201 + *gas_limit,
202 + );
203 +
204 + relayers.push(Relayer::Evm(EVMRelay::new(
205 + Signer::TxSitterSigner(signer),
206 + n.world_id_address,
207 + n.provider.rpc_endpoint.clone(),
208 + )));
209 + }
210 + };
211 ~ });
|
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
src/main.rs#L164
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> src/main.rs:164:46
|
164 | cfg.bridged_networks.iter().for_each(|n| match n.ty {
| ______________________________________________^
165 | | NetworkType::Evm => {
166 | | match &cfg.canonical_network.wallet {
167 | | WalletConfig::Mnemonic { mnemonic } => {
... |
213 | | _ => {}
214 | | });
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
= note: `#[warn(clippy::single_match)]` on by default
help: try
|
164 ~ cfg.bridged_networks.iter().for_each(|n| if let NetworkType::Evm = n.ty {
165 + match &cfg.canonical_network.wallet {
166 + WalletConfig::Mnemonic { mnemonic } => {
167 + let signer = MnemonicBuilder::<English>::default()
168 + .phrase(mnemonic)
169 + .index(0)
170 + .unwrap()
171 + .build()
172 + .expect("Failed to build wallet");
173 + let wallet = EthereumWallet::new(signer);
174 + let l1_provider = ProviderBuilder::default()
175 + .with_recommended_fillers()
176 + .wallet(wallet)
177 + .on_http(
178 + cfg.canonical_network.provider.rpc_endpoint.clone(),
179 + );
180 + let state_bridge = IStateBridgeInstance::new(
181 + n.state_bridge_address,
182 + l1_provider,
183 + );
184 +
185 + let signer = AlloySigner::new(state_bridge);
186 +
187 + relayers.push(Relayer::Evm(EVMRelay::new(
188 + Signer::AlloySigner(signer),
189 + n.world_id_address,
190 + n.provider.rpc_endpoint.clone(),
191 + )));
192 + }
193 + WalletConfig::TxSitter {
194 + url,
195 + address: _,
196 + gas_limit,
197 + } => {
198 + let signer = TxSitterSigner::new(
199 + url.as_str(),
200 + n.state_bridge_address,
201 + *gas_limit,
202 + );
203 +
204 + relayers.push(Relayer::Evm(EVMRelay::new(
205 + Signer::TxSitterSigner(signer),
206 + n.world_id_address,
207 + n.provider.rpc_endpoint.clone(),
208 + )));
209 + }
210 + };
211 ~ });
|
|
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|