Skip to main content
shaddow's user avatar
shaddow's user avatar
shaddow's user avatar
shaddow
  • Member for 6 years, 4 months
  • Last seen this week
comment
onlyOwner and testing question
that worked! added: // regular tests CredentialOrgFactory credentialOrgFactoryA = CredentialOrgFactory(DeployedAddresses.CredentialOrgFactory(‌​)); // onlyOwner tests CredentialOrgFactory credentialOrgFactoryB = new CredentialOrgFactory();
comment
onlyOwner and testing question
will work on that now. appreciate. I expected to have to eventually go the JS route for testing, but was hoping to keep the working set as small as possible at least till class completion. Hadn't considered instantiating inside the test, will try that first. I can get away with not having onlyOwner on the CredentialOrgFactory contract, but not the other contracts which it will use the isCredentialOrg for Access control.
comment
onlyOwner and testing question
creating a credentialOrg. I've updated the git repository to demonstrate, commenting out everything but the first contract. The only variance in testing is the onlyOwner modifier. [github.com/shaddow1201/CredentialVerify] (GitHubLink to project) here is the ganache setup: screencast.com/t/3p9dlHeDI and detailed errors: screencast.com/t/9lpwXtiE0
revised
onlyOwner and testing question
added 80 characters in body
Loading…
asked
Loading…
comment
comment
contract compiles and fails to deploy on Remix or local
Thank you! I KNEW it was something i was MISSING in the 'flow'.
comment
deploy script warning, likely error
thanks for the answer, is a course project, and so can't use that.
comment
deploy script warning, likely error
Thanks, working on it now, came across another issue, maybe you would be willing to try your hand at this problem
Loading…
revised
deploy script warning, likely error
added 1162 characters in body
Loading…
asked
Loading…
comment
Truffle Test Fail, multiple contracts
thanks! that helped! changed to functions to public and the tests passed. Appreciate.
comment
Truffle Test Fail, multiple contracts
aren't the tests ran using the owner?
awarded
revised
Truffle Test Fail, multiple contracts
added 422 characters in body
Loading…
asked
Loading…
awarded
awarded
1 2 3
4