Skip to content

Commit

Permalink
fix: messaging path
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiss committed Jun 8, 2024
1 parent aa8b61b commit 3838f30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/arkproject-deploy-contracts-sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
echo "No changes to commit"
fi
- name: Debug - List root directory files
run: |
ls -la
- name: Setup SSH
uses: webfactory/ssh-agent@v0.5.3
with:
Expand Down
9 changes: 7 additions & 2 deletions packages/deployer/src/deployStarknetContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ import {
getStarknetAccounts
} from "./utils";

// Function to get the path for messaging.json
function getMessagingFilePath() {
return path.join(__dirname, "../../../../messaging.json");
}

async function deployStarknetContracts(starknetNetwork: ProviderNetwork) {
const { provider: starknetProvider, nodeUrl: starknetNodeUrl } =
getStarknetProvider(starknetNetwork);
Expand Down Expand Up @@ -86,8 +91,8 @@ async function deployStarknetContracts(starknetNetwork: ProviderNetwork) {
fromBlock = 0; // default or handle other networks if any
}

// Create the messaging file at the root of the project
const messagingFilePath = path.join(process.cwd(), "messaging.json");
// Create the messaging file at the specified path
const messagingFilePath = getMessagingFilePath();
const messagingFileContent = {
chain: "starknet",
rpc_url: starknetNodeUrl,
Expand Down

0 comments on commit 3838f30

Please sign in to comment.