Skip to content

Commit

Permalink
Chore: Update network hash and refactor custom contract type
Browse files Browse the repository at this point in the history
  • Loading branch information
mmioana authored and bassgeta committed Jan 31, 2025
1 parent 019d93e commit af57d65
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker/colony-cdapp-dev-env-block-ingestor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM colony-cdapp-dev-env/base:latest

ENV BLOCK_INGESTOR_HASH=15d0e5a491d25f78b2f983b0ad9126779f5ad065
ENV BLOCK_INGESTOR_HASH=61747477aa9fc21fbe0c873311655c72e4bf54ea

# Declare volumes to set up metadata
VOLUME [ "/colonyCDapp/amplify/mock-data" ]
Expand Down
2 changes: 1 addition & 1 deletion docker/colony-cdapp-dev-env-network
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM colony-cdapp-dev-env/base:latest

ENV NETWORK_HASH=aa9dc4dd0b12d363dc762e789d35b0096f57ea3e
ENV NETWORK_HASH=89015a77c6fba5ac4fbbdcb0c806c0b66807fc73

# Declare volumes to set up metadata
VOLUME [ "/colonyCDapp/amplify/mock-data" ]
Expand Down
2 changes: 1 addition & 1 deletion docker/colony-cdapp-dev-env-proxy-block-ingestor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM colony-cdapp-dev-env/base:latest

# @TODO maybe add a PROXY_BLOCK_INGESTOR_HASH and fallback to BLOCK_INGESTOR_HASH
ENV BLOCK_INGESTOR_HASH=1b39cf385254c2117dff2e0e8a0c9578c549ed6e
ENV BLOCK_INGESTOR_HASH=61747477aa9fc21fbe0c873311655c72e4bf54ea

ENV CHAIN_RPC_ENDPOINTS='["http://network-contracts-remote:8545", "http://network-contracts-remote-2:8545"]'
ENV STATS_PORTS='["10002", "10003"]'
Expand Down
10 changes: 6 additions & 4 deletions src/redux/sagas/colony/colonyClaimFunds.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ClientType } from '@colony/colony-js';
import { type CustomContract } from '@colony/sdk';
import { all, fork, put, takeEvery } from 'redux-saga/effects';

import { DEFAULT_NETWORK_INFO } from '~constants';
import { colonyFundingAbi } from '~constants/abis.ts';
import type ColonyManager from '~context/ColonyManager.ts';
import { ActionTypes } from '~redux/actionTypes.ts';
import { type AllActions, type Action } from '~redux/types/actions/index.ts';
import { TRANSACTION_METHODS } from '~types/transactions.ts';
Expand Down Expand Up @@ -41,10 +41,12 @@ function* colonyClaimFunds({
];

try {
const colonyManager = yield getColonyManager();
const colonyManager: ColonyManager = yield getColonyManager();

const colonyFundingContract: CustomContract<typeof colonyFundingAbi> =
colonyManager.getCustomContract(colonyAddress, colonyFundingAbi);
const colonyFundingContract = colonyManager.getCustomContract(
colonyAddress,
colonyFundingAbi,
);

const encodedTransactions = yield all(
tokenAddressesGroupedByChain.flatMap((group) => {
Expand Down

0 comments on commit af57d65

Please sign in to comment.