From 59c46bd6fcd23b4317e51d5f260163e30819450b Mon Sep 17 00:00:00 2001 From: Marcin Jachymiak Date: Tue, 10 Mar 2020 06:56:42 -0400 Subject: [PATCH] Update Python code sample (#75) --- src/components/CodeExamples/Code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CodeExamples/Code.js b/src/components/CodeExamples/Code.js index ea2f983e..8c61af0c 100644 --- a/src/components/CodeExamples/Code.js +++ b/src/components/CodeExamples/Code.js @@ -1,11 +1,11 @@ export const python = `from siaskynet import Skynet # upload -skylink = Skynet.UploadFile("./src.jpg") +skylink = Skynet.upload_file("./src.jpg") print("Upload successful, skylink: " + skylink) # download -Skynet.DownloadFile("./dst.jpg", skylink) +Skynet.download_file("./dst.jpg", skylink) print("Download successful")`; export const curl = `# upload