Hello,
I am using React, and follow the example:
import React from "react";
import { useMoralisWeb3Api } from "react-moralis";
const Web3Api = useMoralisWeb3Api();
const uploadFolder = async () => {
const options = {
abi: [
{
path: "moralis/logo.jpg",
content:
"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3",
},
],
};
const path = await Web3Api.storage.uploadFolder(options);
console.log(path);
};
But I got error: "Expected 0 arguments, but got 1" for function Web3API.storage.uploadFolder. I found that there is no arguments in that function in Moralis package,
static storage: {
uploadFolder: () => Promise<operations["uploadFolder"]["responses"]["200"]["content"]["application/json"]>;
}
My version is [email protected]
What should I do now? Could you give me a updated example? Thank you