I am in the process of developing a system for document verification using ReactJS and solidity smart contract. My goal is to showcase the outcome of the get().call() method from my smart contract on the frontend, either through a popup or simply as text d ...
I am facing a particular issue: I have developed a smart contract on Remix : pragma solidity ^0.5.1; contract anotherTry { function Hello() external pure returns (string memory) { return "Hello World !!!"; } } After compiling it, I extracted it ...
I developed a crowdfunding platform using React and integrated thirdweb to create my smart contract. However, upon running the application I encountered an error in the console indicating that it was unable to retrieve metadata from {address}. ERROR: - E ...
I have been troubleshooting an issue with Next.js The error I am encountering => error - ./node_modules/web3-eth-contract/node_modules/web3-providers-http/lib/index.js:26:0 Module not found: Can't resolve 'http' Import trace for requested module: ...
Currently enrolled in the freeCodeCamp course via YouTube and encountered an issue while running the program. I am attempting to incorporate a transaction into Ganache and noticed activity in the Ganache logs as well. This is my first time posting, so feel ...
While working with next.js, I encountered an issue where web3.eth.getAccounts() was returning an empty array on the server side. Here are two of my files - index.js and web3.js. index.js: import React, { Component } from "react"; import web3 from "../eth ...
While attempting to compile the smart contract using solc-js, I encountered the following error message: Krishna:Voting krishnakankipati$ node deploy.js Compiling the contract assert.js:350 throw err; ^ AssertionError [ERR_ASSERTION]: Invalid c ...
overview After developing an Ethereum smart contract using the Solidity language, I utilized Ganache to deploy my contract for testing purposes. However, in order to conduct tests effectively, I need to create a new instance of my contract using JavaScrip ...
Recently, I attempted to set up "truffle" using npm, but my lack of familiarity with NodeJS has left me puzzled as to why npm refuses to install it. Upon running npm install -g truffle in Powershell with Admin privileges, a series of error messages appeare ...
Within my ERC20 solidity smart contract, I've implemented the following function: function getSummary() public view returns (string, string, address, uint, uint){ return( symbol, name, creator, balances[msg.sender], _tot ...
Currently, I am attempting to initiate a transaction via Python that involves utilizing the collectFromTiles function within this specific smart contract: Displayed below is the code snippet for the aforementioned function on polygonscan: function collect ...
For the past 3 months, I have been delving into solidity and exploring its intricacies. However, I now find myself facing a dilemma on how to effectively link my contract with frontend technologies such as React or Next. Each developer has their unique a ...
I am facing an issue while attempting to deploy my first Voting contract on the testRPC. The error seems to arise from the arguments parameter in the code snippet below. When I tried passing an empty array, it gave an error stating "Got 0 expected 1!". Si ...
My smart contract factory has the ability to deploy another smart contract. Within the factory contract, there is a specific function: address[] public migrations; ... function getMigrations() public view returns (address[] memory) { return migr ...
Currently, I am in the process of constructing the marketplace decentralized application (dapp) tutorial created by Dapp University on YouTube. However, when I run truffle compile, an error is thrown with the message: Error: Cannot find module 'babel ...
I'm currently working on a unique crowdfunding DApp that requires constant access to contract variables through function calls for retrieval purposes. The getDeployedCampaigns function is responsible for returning an array of deployed campaign addres ...
AssertionError [ERR_ASSERTION]: An error occurred due to an invalid callback being specified. Please check the specified callback and try again. ...
I am working with a smart contract that includes the following import statements: import "@prb/contracts/PRBMathSD59x18.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol&q ...