Skip to content

Commit dd312f7

Browse files
committed
update
1 parent fc7b8b0 commit dd312f7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

contract_manager/scripts/deploy_evm_lazer_contracts.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import yargs from "yargs";
4242
import { hideBin } from "yargs/helpers";
4343
import { execSync } from "child_process";
44-
import { readFileSync, writeFileSync } from "fs";
4544
import { join } from "path";
4645
import { DefaultStore } from "../src/node/utils/store";
4746
import { EvmChain } from "../src/core/chains";
@@ -175,13 +174,10 @@ async function deployPythLazerContract(
175174
* @param address The deployed contract address
176175
*/
177176
function updateContractsFile(chain: EvmChain, address: string): void {
178-
const contractsJsonPath = join(
179-
__dirname,
180-
"../store/contracts/EvmLazerContracts.json",
181-
);
182-
183-
DefaultStore.lazer_contracts[`${chain.getId()}_${address}`] =
184-
new EvmLazerContract(chain, address);
177+
console.log(`Updating contracts file for ${chain.getId()}`);
178+
// FIXME: This is not working as expected. The contract is not being saved to the store.
179+
const lazerContract = new EvmLazerContract(chain, address);
180+
DefaultStore.lazer_contracts[lazerContract.getId()] = lazerContract;
185181
DefaultStore.saveAllContracts();
186182

187183
console.log(`\nUpdated EvmLazerContracts.json with new deployment`);

0 commit comments

Comments
 (0)