From 4c8c833718748bbf7449f9254e5b1c6173765dd3 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Tue, 21 Nov 2023 13:55:41 -0500 Subject: [PATCH] Update App.tsx --- example/src/App.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index 73cee0a..bdc1ec6 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -13,6 +13,7 @@ const App = () => { const [value, setValue] = React.useState(''); const [inprogress, setInprogress] = React.useState(false); const [newRootCid, setNewRootCid] = React.useState(''); + const seed = '0xmd93c00b5v99f99ti871r8r17r2rt66ee277777ge1be6fb47709b691efb0e777'; const [initComplete, setInitComplete] = React.useState< { peerId: string; rootCid: string; private_ref: string } | {} @@ -443,9 +444,7 @@ const App = () => { chainApi.init().then(async (api: any) => { console.log('api created'); console.log('check account balance'); - let accountId = await chainApi.getAccountIdFromSeed( - '0xde74b73a4e99c09ae760e7d05c1cf50bd166312fe1be6fb46609b690efb0e472' - ); + let accountId = await chainApi.getAccountIdFromSeed(seed); console.log('account ID is ' + accountId); chainApi .checkAccountBalance(api, accountId) @@ -593,12 +592,7 @@ const App = () => { if (api) { console.log('uploading manifests'); chainApi - .batchUploadManifest( - api, - '0xde74b73a4e99c09ae760e7d05c1cf50bd166312fe1be6fb46609b690efb0e472', - ['Cid6'], - 1 - ) + .batchUploadManifest(api, seed, ['Cid6'], 1) .then((res: any) => { console.log('res received'); console.log(res);