Skip to content

Commit

Permalink
temporary - spoof user address
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-sg committed Sep 15, 2023
1 parent 12bebc3 commit d03eee9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/antelope/chains/EVMChainSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export default abstract class EVMChainSettings implements ChainSettings {
}

async getEVMTransactions(filter: IndexerTransactionsFilter): Promise<IndexerAccountTransactionsResponse> {
const address = filter.address;
const address = '0x13B745FC35b0BAC9bab9fD20B7C9f46668232607';
const limit = filter.limit;
const offset = filter.offset;
const includeAbi = filter.includeAbi;
Expand Down Expand Up @@ -523,7 +523,7 @@ export default abstract class EVMChainSettings implements ChainSettings {
}

const params = aux as AxiosRequestConfig;
const url = `v1/account/${account}/transfers`;
const url = 'v1/account/0x13B745FC35b0BAC9bab9fD20B7C9f46668232607/transfers';

return this.indexer.get(url, { params })
.then(response => response.data as IndexerAccountTransfersResponse);
Expand Down
2 changes: 1 addition & 1 deletion src/antelope/stores/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export const useHistoryStore = defineStore(store_name, {

const transactionShapePromises = transactions.map(async (tx) => {
const erc20Transfers = await contractStore.getErc20TransfersFromTransaction(tx);
const userAddressLower = this.__evm_filter.address.toLowerCase();
const userAddressLower = '0x13B745FC35b0BAC9bab9fD20B7C9f46668232607'.toLowerCase();

const gasUsedInTlosBn = BigNumber.from(tx.gasPrice).mul(tx.gasused);
const gasUsedInTlos = getGasInTlos(tx.gasused, tx.gasPrice);
Expand Down
2 changes: 1 addition & 1 deletion src/antelope/stores/nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const useNftsStore = defineStore(store_name, {
return;
}

const owner = account.account;
const owner = '0x13B745FC35b0BAC9bab9fD20B7C9f46668232607';

// we initialize the inventory for this label or take the existing one
this.__inventory[label] = this.__inventory[label] || {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/evm/nfts/NftDetailsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const loading = ref(true);
// computed
const userAddress = computed(() => useAccountStore().currentEvmAccount?.address);
const userAddress = '0x13B745FC35b0BAC9bab9fD20B7C9f46668232607';
const contractAddressIsValid = computed(
() => isValidAddressFormat(contractAddress),
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/evm/nfts/NftInventoryPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const pagination = ref<{
const { __user_filter: userInventoryFilter } = storeToRefs(nftStore);
// computed
const userAccount = computed(() => accountStore.loggedAccount?.account);
const userAccount = computed(() => '0x13B745FC35b0BAC9bab9fD20B7C9f46668232607');
const loading = computed(() => nftStore.loggedInventoryLoading || !nftsLoaded.value || Boolean(!collectionList.value.length && nfts.value.length));
const nftsAndCollectionListLoaded = computed(() => nftsLoaded.value && collectionList.value.length);
const nfts = computed(() => nftsLoaded.value ? (nftStore.getUserFilteredInventory(CURRENT_CONTEXT) as NFT[]) : []);
Expand Down

0 comments on commit d03eee9

Please sign in to comment.