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 44234

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

TypeError: Type uint256 is not implicitly convertible to expected type bool

The "if statement" returns a bool condition,(being true or false), and likely should have a comparison going on.. In your case there is no comparison (> == etc) going on, and just returning a numbe …
shaddow's user avatar
  • 308
3 votes
1 answer
45 views

2_deploy_contracts question, about test records

With the below i'm deploying and then setting some test records. However when I test it doesn't seem to see these records. TESTING OUTPUT ignore # variation as i hadn't updated it in the test, it sti …
shaddow's user avatar
  • 308
1 vote

Calling a Solidity function from React

check out the simpleStorage react example, it's a great place to get started and is what i used for framework. I then started replacing parts and testing. work in progress is my current App.js file …
shaddow's user avatar
  • 308
1 vote
1 answer
362 views

solidity and react and calling a solidity function many times

I was looking at where i needed to go in my coding, and see i need a pattern to handle the 'many' calls. for example a call only returns 1 set of data, when i need perhaps records 1-70. Is the follo …
shaddow's user avatar
  • 308
0 votes
1 answer
643 views

onlyOwner and testing question

CredentialOrgFactory(credentialOrgContractAddress); if (cof.isCredentialOrg(_credentialOrgAddress)){ foundAccount = 1; } require(foundAccount == 1, "Not Credentialing Org"); _; } solidity … code: pragma solidity ^0.4.21; /** * @title CredentialOrgFactory * @dev The CredentialOrgFactory allows the contract owner to add new credentialing orgs */ import ". …
shaddow's user avatar
  • 308
3 votes
Accepted

How to map Array of Structs in Solidity

your code should work as intended, and give you a total count of 'emojis', but you may want that information on a per address basis, to do that you could add a second mapping, to always hold the last …
shaddow's user avatar
  • 308