Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Feb 13, 2025
1 parent 6f4c8be commit d93f31e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions docker/fuel-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# We should be supporting always the same fuel-core version as the fuels (ts-sdk)
# https://github.com/FuelLabs/fuels-ts/blob/master/internal/fuel-core/VERSION
FROM ghcr.io/fuellabs/fuel-core:v0.40.0
FROM ghcr.io/fuellabs/fuel-core:v0.40.2

# dependencies
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -17,19 +17,20 @@ WORKDIR /fuel

COPY ./genesis_coins.json .

# Fuel Core 0.40.2, needs to be changed when core version is updated
RUN git clone \
https://github.com/FuelLabs/chain-configuration.git \
/chain-configuration && \
cd /chain-configuration && \
git checkout 0dc0960f14da7b6650b5438dc1e99d7ff7acec73
git checkout b2a9fd7ae37a33b45b2407eadf9c870ef2027c07

# Copy the base local configuration
RUN cp -R /chain-configuration/local/* ./

# Copy the testnet consensus parameters and state transition bytecode
RUN cp /chain-configuration/upgradelog/ignition-devnet/consensus_parameters/13.json \
RUN cp /chain-configuration/upgradelog/ignition-devnet/consensus_parameters/14.json \
./latest_consensus_parameters.json
RUN cp /chain-configuration/upgradelog/ignition-devnet/state_transition_function/15.wasm \
RUN cp /chain-configuration/upgradelog/ignition-devnet/state_transition_function/17.wasm \
./state_transition_bytecode.wasm

# update local state_config with custom genesis coins config
Expand Down
8 changes: 5 additions & 3 deletions e2e-tests/runner/fuels.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default createConfig({
privateKey:
'0xa449b1ffee0e2205fa924c6740cc48b3b473aa28587df6dab12abc245d1f5298',
providerUrl: process.env.PROVIDER_URL || 'http://localhost:4000/v1/graphql',
onDeploy: (_, contracts) => {
onDeploy: (_, { contracts }) => {
const contractIdsPath = join(__dirname, './src/contract-ids.json');
let contractIds = {};
if (existsSync(contractIdsPath)) {
Expand All @@ -23,8 +23,10 @@ export default createConfig({
);
}

contractIds[process.env.CONTRACT_NAME || 'contract'] =
contracts[0].contractId;
contractIds = {
...contractIds,
[process.env.CONTRACT_NAME || 'contract']: contracts?.[0]?.contractId,
};
writeFileSync(contractIdsPath, JSON.stringify(contractIds, null, 2));
},
});

0 comments on commit d93f31e

Please sign in to comment.