You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am creating a website to transfer etherreum with metamask
but getting the following error TypeError: transactionsContract.addToBlockchain is not a function at sendTransaction (TransactionsContext.jsx:85:62)
i have defined the addToBlockchain function in on of my smart_contract file which is in Transactions.sol
}
``
also this error is shown can anyone tell me why TransactionsContext.jsx:100 Uncaught (in promise) Error: no ethereum object sendTransaction at sendTransaction
here is the part of abi file which is used for that addtoblockchain { "inputs": [ { "internalType": "address payable", "name": "receiver", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "string", "name": "message", "type": "string" }, { "internalType": "string", "name": "keyword", "type": "string" } ], "name": "addToBlockchain", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i am creating a website to transfer etherreum with metamask
but getting the following error
TypeError: transactionsContract.addToBlockchain is not a function at sendTransaction (TransactionsContext.jsx:85:62)
i have defined the addToBlockchain function in on of my smart_contract file which is in Transactions.sol
here is my transactionContext file
}
``
also this error is shown can anyone tell me why
TransactionsContext.jsx:100 Uncaught (in promise) Error: no ethereum object sendTransaction at sendTransaction
here is the part of abi file which is used for that addtoblockchain
{ "inputs": [ { "internalType": "address payable", "name": "receiver", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "string", "name": "message", "type": "string" }, { "internalType": "string", "name": "keyword", "type": "string" } ], "name": "addToBlockchain", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
Beta Was this translation helpful? Give feedback.
All reactions