diff --git a/contract-watcher/cmd/service/run.go b/contract-watcher/cmd/service/run.go index 7ac68180..f0e70051 100644 --- a/contract-watcher/cmd/service/run.go +++ b/contract-watcher/cmd/service/run.go @@ -209,7 +209,7 @@ func newWatchersForMainnet() *watchersConfig { celo: &config.CELO_MAINNET, rateLimit: rateLimitConfig{ evm: 1000, - solana: 3, + solana: 20, terra: 10, aptos: 20, oasis: 3, diff --git a/contract-watcher/internal/aptos/client.go b/contract-watcher/internal/aptos/client.go index 85c15c55..c852ac60 100644 --- a/contract-watcher/internal/aptos/client.go +++ b/contract-watcher/internal/aptos/client.go @@ -9,7 +9,6 @@ import ( "github.com/go-resty/resty/v2" "github.com/wormhole-foundation/wormhole-explorer/contract-watcher/internal/metrics" - "github.com/wormhole-foundation/wormhole-explorer/contract-watcher/support" "go.uber.org/ratelimit" ) @@ -101,7 +100,7 @@ func (s *AptosSDK) GetLatestBlock(ctx context.Context) (uint64, error) { if result.BlockHeight == "" { return 0, fmt.Errorf("empty block height") } - return support.DecodeUint64(result.BlockHeight) + return strconv.ParseUint(result.BlockHeight, 10, 64) } func (s *AptosSDK) GetBlock(ctx context.Context, block uint64) (*GetBlockResult, error) {