@@ -48,7 +48,7 @@ func (p *service) Start(ctx context.Context, interval time.Duration) error {
4848 go p .generateNonceAccountsOnSolanaMainnet (ctx )
4949
5050 // Setup workers to watch for nonce state changes on the Solana side
51- for _ , item := range []nonce.State {
51+ for _ , state := range []nonce.State {
5252 nonce .StateUnknown ,
5353 nonce .StateReleased ,
5454 } {
@@ -59,17 +59,17 @@ func (p *service) Start(ctx context.Context, interval time.Duration) error {
5959 p .log .WithError (err ).Warnf ("nonce processing loop terminated unexpectedly for env %s, instance %s, state %d" , nonce .EnvironmentSolana , nonce .EnvironmentInstanceSolanaMainnet , state )
6060 }
6161
62- }(item )
62+ }(state )
6363 }
6464
6565 // Setup workers to watch for nonce state changes on the CVM side
6666 //
6767 // todo: Dynamically detect VMs
6868 for _ , vm := range []string {
6969 common .CodeVmAccount .PublicKey ().ToBase58 (),
70- "52MNGpgvydSwCtC2H4qeiZXZ1TxEuRVCRGa8LAfk2kSj " ,
70+ "Bii3UFB9DzPq6UxgewF5iv9h1Gi8ZnP6mr7PtocHGNta " ,
7171 } {
72- for _ , item := range []nonce.State {
72+ for _ , state := range []nonce.State {
7373 nonce .StateReleased ,
7474 } {
7575 go func (vm string , state nonce.State ) {
@@ -79,7 +79,7 @@ func (p *service) Start(ctx context.Context, interval time.Duration) error {
7979 p .log .WithError (err ).Warnf ("nonce processing loop terminated unexpectedly for env %s, instance %s, state %d" , nonce .EnvironmentCvm , vm , state )
8080 }
8181
82- }(vm , item )
82+ }(vm , state )
8383 }
8484 }
8585
0 commit comments