Category "solidity"

How to use TransparentUpgradeableProxy as Transparent Proxy

I'm Solidity Newbie. I'm learning how to implement Transparent Proxy using Openzeppelin's TransparentUpgradeableProxy contract, but am having some problems. Ste

How to create a ZkSync account?

The ZkSync documentation states that a deposit has to be made from an existing Ethereum account to a non-existing ZkSync account counterfactually in order to cr

No safeTransferFrom function in ethers.js contract instance?

I created a contract instance in hardhat console like so: const contract_fac = await ethers.getContractFactory("ContractName"); const contract = await contract_

Trouble Accessing Solidity on VSCode

When I do Ctrl+Shift+P on VSCode, I am unable to see Solidity as an option. If unfamiliar with Solidity, it is a language for writing smart contracts on the Eth

when using Hardhat doesnt exist create project

after maked directory and on terminal I typed 'npx hardhat' enter image description here but doesnt showed create project when i saw their tutorial, possible to

AttributeError: 'NoneType' object has no attribute '_with_attr' Brownie

I was following the freecodecamp smart contract course, i was in lesson 6 brownie Fund me/ when i was setting up my test it showed me the next error: platform w

Verify and Publish Contract on Etherscan with Imported OpenZeppelin file

I'm currently building a ERC721 compliant contract and have published the contract here: https://ropsten.etherscan.io/address/0xa513bc0a0d3af384fefcd8bbc1cc0c97

No matching declaration found error in Solidity

The code I have: function approveRequest(uint256 index) public { Request storage request = requests[index]; require(approvers[msg.sender]); require

Solidity bug hunting

I've got a piece of code below that attempts to implement a two-player game (with a wager on the line) of Tic-Tac-Toe, also known as Noughts and Crosses. It is

insufficient funds for intrinsic transaction cost on test ropsten server

I'm trying to follow a tutorial to create an NFT: https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/ I took a faucet here: https://fau

Uncaught ReferenceError: TodoList is not defined at evalmachine.<anonymous>:1:7

I've been following a tutorial for the past couple of days and I keep getting this error. todoList = await TodoList.deployed() My contract is migrated to the

How to get the returned data from a smart contract function using ethers.js?

I'm trying to consume a function from a smart contract using ethers.js. The function retrieve the info of a user logged before (with the help of other function)

use TransferFrom in solidity smartcontract ( ERC-20 )

I Need to Write a Smart Contract, In This Smart Contract User Can Send Token to Each Account in ERC-20 Network. sender :0x5C2879Ec550e2F65D557b540B7DEAB3A6d478d

ERROR send and transfer are only available for objects of type address payable , not address

function finalizeRequest(uint index) public restricted { Request storage request = requests[index]; require(request.approvalCount > (approversCo

Cannot assign values to multi-dimensional array in solidity

I'm trying to use this function but I am getting an ambiguous error. All I get is "errorCode":"32" Is there a reason this does not work? Am I missing something?

MetaMask RPC error? 'MetaMask - RPC Error: Internal JSON-RPC error.'

I'm developing the front-end to an application that I'm trying to test. However, MetaMask keeps giving me this error? I tried changing the gas limit like previo

Can I subscribe event fire from smart contract's events with NodeJS?

I just wrote smart contract function with fire event like this. And create my node.js application with following code. const express = require('express') cons

Solana program to send multiple lamport transfers and emit event

I’m building a program intended to manage multiple payments with one call. The program needs to complete the following steps: Accept a certain amount of l

DeclarationError: Identifier not found or not unique

I'm trying to compile my sol file, but it's giving me this error. Why am I getting this error? DeclarationError: Identifier not found or not unique. --> p

BSC Testnet addLiquiditiyETH TRANSFER_FROM_FAILED

I'm coding an bep20 token and if I want to add Liquidity with pancakeswap I get the following error: ProviderError: Error: VM Exception while processing transac