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 90305

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.

0 votes
1 answer
415 views

Incrementing a unique return value from a mapping

Let's say I have a mapping called Tries. each time a function is called I want to increment the return value from 0 to x depending on the number of tries (trying to call the function). here's the mapp …
Pequod's user avatar
  • 15
0 votes
1 answer
238 views

How to add separative commas every 3 digits in solidity to an input integer?

Is there a way to add separative commas to large input numbers? let's say the input was 1000, I want the output for this function to be a casted string that has this format "1,000". Note: I'm using th …
Pequod's user avatar
  • 15
0 votes
1 answer
66 views

Receiving ERC20 tokens as paymant inside my smart contracts

Is there a way to receive X amount of ERC20 tokens to transact certain methods inside my smart contracts? So let's say a mint method is payable and receives ether as a value instead, it requires the m …
Pequod's user avatar
  • 15
1 vote
1 answer
220 views

Why can't I Transfer ERC20 Tokens through my ERC721 contract as payment?

Here's the function: function transferERC20() external { _erc20.transferFrom(msg.sender, erc20Recipient, 6*10**18); } After I imported the IERC20 Interface to interact with ERC20 tokens i …
Pequod's user avatar
  • 15