Skip to content

Commit

Permalink
devop: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed May 1, 2024
1 parent 81e324d commit a94dc2d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import MarketData from "@/libs/market-data";
import { Activity, ActivityStatus, ActivityType } from "@/types/activity";
import { BaseNetwork } from "@/types/base-network";
import { NetworkEndpoints, NetworkTtls } from "./configs";
import ActivityState from "@/libs/activity-state";
import { toBase } from "@enkryptcom/utils";

const getAddressActivity = async (
Expand All @@ -30,16 +29,6 @@ export default async (
const networkName = network.name as keyof typeof NetworkEndpoints;
const enpoint = NetworkEndpoints[networkName];
const ttl = NetworkTtls[networkName];

const activityState = new ActivityState();
const options = {
address: address,
network: network.name,
};
const allActivities = await activityState.getAllActivities(options);
// disabling this as there is a bug removing activities
// querying from height=zero should remedy it temporarily
// const lastActivity = allActivities[allActivities.length - 1] as any;
const activities = await getAddressActivity(
address,
enpoint,
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/providers/kadena/types/kda-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class KDAToken extends KDABaseToken {
network: KadenaNetwork
): Promise<ICommand> {
to = network.displayAddress(to);
const accountDetails = await this.getAccountDetails(to, network);
// const accountDetails = await this.getAccountDetails(to, network);
const api = (await network.api()) as KadenaAPI;
const chainID = await api.getChainId();
const keySetAccount = to.startsWith("k:") ? to.replace("k:", "") : to;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ const checkAndSetConnectedDapp = () => {
const checkAndSetSubNetwork = () => {
if (props.network.subNetworks) {
domainState.getSelectedSubNetWork().then((id) => {
console.log(id);
if (id) {
const subnet = props.network.subNetworks!.find((net) => net.id === id);
if (subnet) currentSubNetwork.value = subnet;
Expand Down

1 comment on commit a94dc2d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.