Open yewyewXD opened 2 years ago
Found in node_modules\react-moralis\lib\hooks\useWeb3ExecuteFunction\useWeb3ExecuteFunction.d.ts after running npm i react-moralis on my React project
node_modules\react-moralis\lib\hooks\useWeb3ExecuteFunction\useWeb3ExecuteFunction.d.ts
npm i react-moralis
Line5:
export declare type Web3ExecuteFunctionParameters = { contractAddress?: string; abi?: object; functionName?: string; params?: Record<string, unknown>; };
Type Web3ExecuteFunctionParameters should also include msgValue. After exploring for hours, I realized this param (msgValue) actually works, when minting NFT or calling a payable smart contract function.
Web3ExecuteFunctionParameters
msgValue
payable
This helped me: https://docs.moralis.io/moralis-server/web3/web3#executefunction
Found in
node_modules\react-moralis\lib\hooks\useWeb3ExecuteFunction\useWeb3ExecuteFunction.d.ts
after runningnpm i react-moralis
on my React projectLine5:
Type
Web3ExecuteFunctionParameters
should also includemsgValue
. After exploring for hours, I realized this param (msgValue
) actually works, when minting NFT or calling apayable
smart contract function.This helped me: https://docs.moralis.io/moralis-server/web3/web3#executefunction