Skip to content

Commit 5197ef6

Browse files
committed
Remove Code fee collector account in isTokenAccountOnBlockchain
1 parent bf326ac commit 5197ef6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/code/async/sequencer/fulfillment_handler.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -713,12 +713,6 @@ func (h *CloseEmptyTimelockAccountFulfillmentHandler) IsRevoked(ctx context.Cont
713713
}
714714

715715
func isTokenAccountOnBlockchain(ctx context.Context, data code_data.Provider, address string) (bool, error) {
716-
// Optimization for external accounts managed by Code
717-
switch address {
718-
case "Ad4gWGCB94PsA4cP2jqSjfg7eTi4aVkrEdXXhNivT8nW": // Fee collector
719-
return true, nil
720-
}
721-
722716
// Try our cache of Code timelock accounts
723717
timelockRecord, err := data.GetTimelockByVault(ctx, address)
724718
if err == timelock.ErrTimelockNotFound {

0 commit comments

Comments
 (0)