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 77139

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
185 views

Undeclared identifiers in child contract

I am inheriting a contract from the OZ 1155 contract: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/ERC1155.sol It contains a function _safeTransferFrom th …
zendevil.eth's user avatar
0 votes
1 answer
1k views

DeclarationError: Identifier not found or not unique although the contract exists

I have a contract that imports another contract that I have locally: pragma solidity ^0.7.4; import ". … Consider adding "pragma solidity ^0.7.4;" project:/contracts/YieldToken.sol:5:24: DeclarationError: Identifier not found or not unique. contract YieldToken is ERC1155Tradeable { …
zendevil.eth's user avatar
0 votes
0 answers
815 views

Returned values aren't valid, did it run Out of Gas? when calling public variable from web3js

I have a public contract variable: uint public bidEnd, and I'm getting its value using web3js like so: new web3.eth.Contract(json, address).methods.bidEnd().call(function(err, res){ console.log("e …
zendevil.eth's user avatar
0 votes
1 answer
47 views

How to scale nft receive addresses?

ERC 1155 has a function called _mint: https://docs.openzeppelin.com/contracts/3.x/api/token/erc1155#ERC1155-_mint-address-uint256-uint256-bytes- _mint(address account, uint256 id, uint256 amount, byte …
zendevil.eth's user avatar
1 vote
1 answer
806 views

ParserError: Expected primary expression. when using payable

I have the following code: function payout() public payable { uint ordersLength = orders.length; uint totalRaised = 0; for (uint i = 0; i < ordersLength; i++) { …
zendevil.eth's user avatar
6 votes
1 answer
15k views

'Error: invalid arrayify value (argument="value", value="", code=INVALID_ARGUMENT, version=b...

I have the following solidity function that I'm calling from truffle: function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes …
zendevil.eth's user avatar