Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 57651

Solidity is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed for writing smart contracts in Ethereum to run on the EVM. Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.

1 vote
1 answer
30 views

Using `selfdestruct()` to send back funds to stakers

Currently, I deploy a contract via a Factory contract for staking. Think of it like UniSwap pools without swapping, short term contracts that I want to destroy after their use is done. But I also want …
abhinavmir's user avatar
0 votes
1 answer
106 views

How to access function calls for an upgraded contract?

I followed OpenZeppelin's HardHat process for writing upgradeable contracts. Write an implementation contract (example.sol) with upgradeable Initializers Write a script to deploy it within Hardhat th …
abhinavmir's user avatar
0 votes
1 answer
794 views

Hardhat-Gas-Reporter reports empty with Waffle

Problem: Hardhat gas reporter does not display gas reports. The tests are written in Waffle. All tests pass correctly. I want to understand what am I doing wrong and how can I mend this? Here is my ha …
abhinavmir's user avatar
0 votes
1 answer
395 views

How can I get the `name()` of another ERC721 contract from my contract?

Aim: To get the name, symbol and tokenURI of another ERC721 contract from my Solidity contract. The goal is to create a one-click clone of a contract for a microprotocol. …
abhinavmir's user avatar
1 vote
1 answer
142 views

Contract <contract_name> should be marked abstract - when inheriting IERC721?

ref link: https://solidity-by-example.org/defi/vault …
abhinavmir's user avatar
0 votes

Do we need a smart contract to implement bidding in NFT Marketplace? If yes do anyone have s...

Here is an example of auction in official Solidity documentation.M Decentraland also has an extended bidding contract for ERC721 you can access here. …
abhinavmir's user avatar
0 votes

Add a price for minting an NFT

You can modify your mint function to accept ETH. function mint(string memory _uri) public payable { require(msg.value = _setMinimumValue, "Price too low!"); uint256 mintIndex = totalS …
abhinavmir's user avatar