powergate 0.2.0 syntax updates

This commit is contained in:
Martina 2020-07-25 13:08:08 -07:00
parent c763a0eb4c
commit 2eae0b894a

View File

@ -42,8 +42,8 @@ class Example extends React.Component {
await getByteArray(); await getByteArray();
const { cid } = await PowerGate.ffs.addToHot(buffer); const { cid } = await PowerGate.ffs.stage(buffer);
const { jobId } = await PowerGate.ffs.pushConfig(cid); const { jobId } = await PowerGate.ffs.pushStorageConfig(cid);
const cancel = PowerGate.ffs.watchJobs((job) => { const cancel = PowerGate.ffs.watchJobs((job) => {
console.log(job); console.log(job);
}, jobId); }, jobId);