Merge pull request #490 from iRyanBell/master

Update Code.js
This commit is contained in:
Karol Wypchło 2020-10-20 11:00:11 +02:00 committed by GitHub
commit 803eb2601e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,11 +45,11 @@ const client = new SkynetClient();
(async () => {
// upload
const skylink = await client.UploadFile("./src.jpg");
const skylink = await client.uploadFile("./src.jpg");
console.log(\`Upload successful, skylink: \${skylink}\`);
// download
await client.DownloadFile("./dst.jpg", skylink);
await client.downloadFile("./dst.jpg", skylink);
console.log('Download successful');
})()`;