File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 4141import yargs from "yargs" ;
4242import { hideBin } from "yargs/helpers" ;
4343import { execSync } from "child_process" ;
44- import { readFileSync , writeFileSync } from "fs" ;
4544import { join } from "path" ;
4645import { DefaultStore } from "../src/node/utils/store" ;
4746import { EvmChain } from "../src/core/chains" ;
@@ -175,13 +174,10 @@ async function deployPythLazerContract(
175174 * @param address The deployed contract address
176175 */
177176function 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` ) ;
You can’t perform that action at this time.
0 commit comments