Questions tagged [smart-contract-wallets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Undeclared identifier. "test function" is not (or not yet) visible at this point

function mint(uint256 quantity) external payable callerIsUser { // `_mint`'s second argument now takes in a `quantity`, not a `tokenId`. if(whiteListSale) { ...
user avatar
  • 1
0 votes
1 answer
14 views

What happens to the eth held by a contract once it is killed?

What happens to the eth held by a contract once it is killed? And how does it continues to receive eth after getting killed ? Where does the balance of the contract get stored in a EVM?
user avatar
0 votes
1 answer
7 views

Execute "setApprovalForAll" on behalf of deployed smart contract (Solidity)

I have deployed a contract which implements Ownable and IERC721Receiver. The issue I am facing is that this particular contract does not implement any function to grant approval to other contracts in ...
user avatar
1 vote
0 answers
15 views

Where are smart contracts actually stored?

I have been trying for a while to understand where the actual smart-contract is stored. While searching online, most of the answers you will find is that the contract is stored on the blockchain. On ...
user avatar
  • 11
0 votes
1 answer
19 views

ParserError: Expected ',' but got 'memory'

event studentAdded(string memory _studentFirstName, string memory _studentLastName, uint256 _studentId); from solidity: ParserError: Expected ',' but got 'memory' --> contracts/4.Scorecard.sol:...
user avatar
0 votes
0 answers
6 views

Is there any tool, which exports the smart contract ABI and generates the functions in the UI just like remixd

I have started to develop some of the Smart Contras using hardhat. Now I want to test it in my local with some UI (without creating any front-end project). Is there any tool, which exports the ...
user avatar
-1 votes
0 answers
18 views

Wallet Recovery Issue - Gnosis-Safe - Old Multi-Sig Version

I'm in a bit of a bind here, and I didn't even consider the provider would deprecate the version of my multi-sig wallet at the time. I have all the backup files (manifest, logs, .db, index, json, etc.)...
user avatar
0 votes
1 answer
63 views

Error: chainId address mismatch

i'm trying to deploy a simple smart contract with node-js on a ganache-GUI but i keep getting this Error: chainId address mismatch; may chainId is the same as the networkId in the ganache app witch is ...
user avatar
0 votes
1 answer
29 views

How to get transaction history of ERC-721 token in Solidity

I'm trying to figure out how to get a history of values for a specific ERC721 token of known contract address. I want to do some maths in solidity and do not want to do all that in web2; therefore, I ...
user avatar
  • 3
0 votes
0 answers
13 views

browni and flask, how to do interact with smart contract in an api?

I have a project that I have developed with brownie and it works in cli mode. But now I want to set restful api and give API. for example I have a python file like this : from brownie import accounts,...
user avatar
0 votes
1 answer
15 views

Declaration Error Solidity

//SPDX-License-Identifier:MIT pragma solidity ^0.6.0; contract myTest2 { address payable owner; event Minted(address ownerAddress,string message); event transfer(address sender, string ...
user avatar
0 votes
1 answer
42 views

Returned error: VM Exception while processing transaction: revert when i use UniswapV2router functions

I'm using my owned cloned UniswapV2 smart contracts(core+periphery) and deployed them using ganache network, so when i start testing functions, i started with createPair() function located in ...
user avatar
0 votes
0 answers
16 views

Can I create a smart contract to spread money between 3 usdt wallets after paying?

Can I create a smart contract to spread money between 3 usdt wallets after paying? for example: When I send a 300 usdt(tether) to , after that I want my smart contract to give a 150 usdt to and 150 ...
user avatar
  • 1
0 votes
2 answers
49 views

Funds stucked in smart contract

I have a question. So there is a project named StarsLab that had it's mint live in the beginning of this year. They started first the WL sale. I wasn't WL but was able to mint so reported it to the ...
user avatar
  • 1
0 votes
2 answers
173 views

Help Please hardhat.config.js * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes

Hi Please i get this error while compiling hardhat.config.js : * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes i have my private key in dot env copied from ...
user avatar
1 vote
1 answer
41 views

Why isn't this dutch auction returning the price or working?

I have set up a dutch auction with the specifics mentioned here: What is expected in setting up the following dutch auction? But it keeps reverting and doesn't seem to be returning the price which is ...
user avatar
0 votes
2 answers
57 views

How to use the Solidity Burn function

Newbie here, Can someone explain how to use the Burn function in a solidity contract? I have a token with 1 trillion supply and I would like to burn 1% when nessesary. The Function is asking for a ...
user avatar
  • 3
1 vote
1 answer
22 views

How to write the javascript test code on whether a smart contract function is successfully executed or not?

I wrote a lottery smart contract and gonna to test an "enter" functionality of the smart contract. The below code is javascript test code for the "enter" function of the smart ...
user avatar
0 votes
2 answers
26 views

When we redeploy a smart contract , Is the smart contract updated on the same block of the blockchain or a new block is created?

When we redeploy a smart contract , Is the smart contract updated on the same block of the blockchain where the first smart contract was created or it is stored on a new or different block ?
user avatar
0 votes
1 answer
13 views

ERC20 TRANSFER function error error = false transaction [duplicate]

Want to use erc20 function transfer to transfer erc20 Made contract referring this video https://youtu.be/-5j6Ho0Bkfk function transfererc()payable public{ Token token = Token(address); token....
user avatar
0 votes
1 answer
25 views

How to verify smart contract used with github link

Hello this is simple question how to verify a erc20 smart contract of github openzeppelin link? I have erc20 token build with github openzeppelin link I want to verify it on explorer how to do it? ...
user avatar
0 votes
0 answers
24 views

How can I subscribe to smart contract event properly?

I'm using React Js to subscribe to events in my smart contract, and I want to get the subscription values only once. The syntax: mySmartContract.on('MyEvent', (value) => { console.log(value); }); ...
user avatar
0 votes
0 answers
7 views

New to coding. Trouble writing out truffle migrate —reset

So I am coding along with my teacher in Visual Studio Code and things are going pretty good, it’s only when I go to the terminal to compile the smart contracts we wrote out is where the problem comes ...
user avatar
0 votes
1 answer
10 views

Can I make a transaction using Etherjs without signer?

Is it possible in EtherJS to execute a transaction/s without using signer ? Or If we could setup the signer one time and use that signer indefinitely.
user avatar
0 votes
1 answer
164 views

How to send BNB from my wallet to another wallet using web3?

I am sending BNB from one to another wallet but I a getting an error when I execute my code while I have 0.009 BNB in my wallet : Error: Returned error: insufficient funds for gas * price + value Here ...
user avatar
0 votes
0 answers
60 views

I have an issue with the mint function in the smart contract

This is my mint function, "not enough eth sent" error shows up on minting even though there is enough eth in the wallet. mint price is: 0.02 ether and there is much more in the rinkeby test ...
user avatar
  • 1
0 votes
0 answers
47 views

deposit ERC-20 tokens to smart contract during deployment

I am trying to deploy a staking smart contract that has its own internal reward pool for a token (PToken). The idea is that during deployment the deployer of the contract sends a certain amount of ...
user avatar
0 votes
0 answers
12 views

to convert one token to another, is there something as simple and independent methods, or do we necessarily have to use a dex as a swap interface?

I use web3 with nodejs. To transfer the main network token, which we put in the transaction value. To transfer another token to another wallet, we use the smart contract transfer function of the same ...
user avatar
0 votes
0 answers
11 views

How to create a external call instance function to truffle suite

Is there a way to instantiate a function of my contract, not using the truffle console but by creating a js file? if so, how do I do it?
user avatar
  • 1
0 votes
0 answers
17 views

Geth doesn't handle Large number of Requests

We have a privateblockchain setup in an ec2 instance, I am trying to send 300 requests in one minute from a node server to the privateblockchain using web3.js The blockchain server runs out of ...
user avatar
0 votes
0 answers
19 views

How do I use Mapping as a filter to return specific values in my struct?

I have a struct in my smart contract, that stores tokens in two different statuses, either as an unassigned gifts or as an assigned gifts. I would like to configure my mapping as a filter to return ...
user avatar
  • 107
0 votes
1 answer
83 views

Smart contract events are being emitted multiple times with exactly the same data using Ethers JS

Please someone help me here. I am trying to read events to update the state of the data to make my dapp but the problem I am facing is on a function call, the same event is emitted multiple times (16 ...
user avatar
0 votes
0 answers
22 views

Is using block.timestamp + appropriate for adding months even years into the future?

I have a smart contract that is date dependent. Intended to schedule events far into the future, like days, weeks, months even years into the future. As long as the events happen on the specified date,...
user avatar
  • 107
0 votes
1 answer
28 views

Interacting with one smart contract to another ? , Multiple smart contract interaction ? , One contract calls to another contract ? Solidity

Interacting with one smart contract to another ? , Multiple smart contract interaction ? , One contract calls to another contract ? in Solidity. My questions are: How does a contract with each other ...
user avatar
0 votes
1 answer
20 views

Why am I failing to interact with a smart contract I found on Etherscan.io?

I am getting the below error trying to call an existing smart contract I found on Etherscan.io function using call(). Error: Error: Returned values aren't valid, did it run Out of Gas? You might also ...
user avatar
  • 107
0 votes
1 answer
28 views

How to spend a specific amount of ether and send it to the smart contract (from msg sender)?

i am able to send eth (with a payable function ) to the my contract but what i really need is that when the user interact with the contract it takes a specific amount on the msg sender and add it to ...
user avatar
  • 5
0 votes
1 answer
32 views

Smart contract using WETH

I am looking for info regarding WETH and what it allows. From what I understand, by using WETH a smart contract is able to process payment while the user is "offline". In other words, a ...
user avatar
0 votes
0 answers
7 views

Trouble deploying an ERC20 contract remix

Hi so some assistance would be greatly appreciated. I am able to successfully deploy my contract when my ether is set to 0. It will go through MM and everything looks solid. By the way I am using test ...
user avatar
  • 1
0 votes
0 answers
31 views

Getting an: did it run Out of Gas? error when calling a smart contract method with web3js

I am getting an error trying to call an existing smart contract function using call(). Error: Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not ...
user avatar
  • 107
0 votes
1 answer
65 views

What is expected in setting up the following dutch auction?

This is quite possibly not a question within the scope of stackexchange but please help out. I am trying to do an solidity project in which a dutch auction is to be implemented and the auction logic ...
user avatar
0 votes
0 answers
12 views

Whose tokens are used for burning?

whose tokens are burned? Is it developer's or community's tokens..?? In general who want to give there tokens for sending to dead wallet? its typically loss for them if they give there tokens.
user avatar
0 votes
1 answer
16 views

Can we have communications in a web-based dapp?

I want to create a ui with web3js for some etherium smart contracts. However, I like to enquire the wallet owners whether or not they will accept the transaction Is it possible to send them some sort ...
user avatar
  • 1
0 votes
1 answer
41 views

Member "push" not found or not visible after argument-dependent lookup

// SPDX-License-Identifier: GPL-3.0 pragma solidity >0.6.0 < 0.9.0 ; contract xyz { uint256 public abc ; struct lmnop { uint256 abc; string name; } lmnop [] ...
user avatar
0 votes
1 answer
18 views

Locker smartcontract in solidity withdraw function error

I am developing a locker smart contract where a user can send erc20 tokens and set the time for a locking period. For the withdraw function I want to implement: the locking time should passed the ...
user avatar
0 votes
0 answers
17 views

Wrong displayed coin in smart contract

I'm writing an app which transfer BUSD tokens in Binance Smart Chain. When i take a confirment modal in wallet where i should approvetransfer, i see 0 BNB instead of BUSD value. I use web3 contract ...
user avatar
  • 1
0 votes
0 answers
55 views

how to get Price of Cryptocurrency with web3js

is there any way to get PRICE of any crypto currency with web3JS or solidity. I wanna make something amazing : ) USDT and USDC are also not constant, is there any other way, other than comparing its ...
user avatar
0 votes
0 answers
84 views

Unlimited Approval and Allowance for Wallet address

I am writing a sort of staking contract, where people can stake my ERC20 token, and get rewarded in the same token. My contract is working with 2 address. Stake address - where I put all the staked ...
user avatar
  • 115
0 votes
0 answers
221 views

How to programmatically swap tokens using a smart contract with NodeJS and Solidity

I would like to build a bot (using VS code) that swaps ETH for other tokens and swap other tokens for ETH using a smart contract. I have used Remix IDE but I get errors that I can't fix. For example, &...
user avatar
0 votes
1 answer
25 views

NFT Sent to Smart Contract

https://etherscan.io/address/0x23581767a106ae21c074b2276D25e5C3e136a68b#code Had a pretty big oopsy. I know. No one is kicking myself more than me. That being said, was curious if anyone saw a ...
user avatar
  • 1
0 votes
1 answer
45 views

Where to mint tokens from

I'm new to evms and smart contract, so after I've deployed my token and smart contract, where do I need to go to, to mint more tokens to add to the existing supply. By the way this is the link ...
user avatar

1
2 3 4 5
8