This repository was archived by the owner on Jan 27, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 override : true
5555
5656 - name : Build all workspace members
57+ env :
58+ WORKER_RPC_URL : https://sepolia.base.org
5759 if : steps.check_tag.outputs.exists == 'false'
5860 run : |
5961 export CARGO_BUILD_JOBS=$(nproc)
Original file line number Diff line number Diff line change @@ -4,4 +4,7 @@ fn main() {
44 if let Ok ( version) = std:: env:: var ( "WORKER_VERSION" ) {
55 println ! ( "cargo:rustc-env=WORKER_VERSION={}" , version) ;
66 }
7+ if let Ok ( rpc_url) = std:: env:: var ( "WORKER_RPC_URL" ) {
8+ println ! ( "cargo:rustc-env=WORKER_RPC_URL={}" , rpc_url) ;
9+ }
710}
Original file line number Diff line number Diff line change @@ -43,12 +43,11 @@ pub struct Cli {
4343 #[ command( subcommand) ]
4444 pub command : Commands ,
4545}
46-
4746#[ derive( Subcommand ) ]
4847pub enum Commands {
4948 Run {
5049 /// RPC URL
51- #[ arg( long, default_value = " http://localhost:8545") ]
50+ #[ arg( long, default_value = option_env! ( "WORKER_RPC_URL" ) . unwrap_or ( " http://localhost:8545") ) ]
5251 rpc_url : String ,
5352
5453 /// Port number for the worker to listen on - DEPRECATED
@@ -224,6 +223,7 @@ pub async fn execute_command(
224223 let version = APP_VERSION ;
225224 Console :: section ( "🚀 PRIME WORKER INITIALIZATION - beta" ) ;
226225 Console :: info ( "Version" , version) ;
226+
227227 /*
228228 Initialize Wallet instances
229229 */
You can’t perform that action at this time.
0 commit comments