Skip to content

Commit

Permalink
renaming: read artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Sep 29, 2023
1 parent 279e22b commit 495c7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced/how-to-integrate-scrypt-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const fs = require('fs').promises;
const util = require('util');

// Async function to read a JSON file
async function fetchArtifactFromFile(filePath) {
async function readArtifactFromFile(filePath) {
try {
// Read the file using fs.promises.readFile and await for the result
const data = await fs.readFile(filePath, 'utf8');
Expand All @@ -226,7 +226,7 @@ async function main() {
const artifactFilePath = 'path_to_your_json_file.json';

// Fetch the JSON artifact data from the file
const artifact = await fetchArtifactFromFile(artifactFilePath);
const artifact = await readArtifactFromFile(artifactFilePath);

const apiKey = '[Your API key]';
const webhookUrl = 'https://api.scrypt.io/webhooks/create'; // Use 'https://testnet-api.scrypt.io' for testnet
Expand Down

0 comments on commit 495c7a7

Please sign in to comment.