Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test the factory #125

Open
maurelian opened this issue Mar 28, 2018 · 4 comments
Open

Test the factory #125

maurelian opened this issue Mar 28, 2018 · 4 comments

Comments

@maurelian
Copy link
Contributor

Things we need:

  1. A contract of exactly the same length as the compiled EIP20 contracts and with a matching first byte, but non-matching trailing bytes.

  2. A way to deploy that contract (theoretically easy, but if the test contract has to be hand built as bytecode, I think we’ll need to hack Truffle’s deployment pipeline a bit or otherwise do something non-standard to get it in the tests.)

@kangarang
Copy link

A contract of exactly the same length as the compiled EIP20 contracts and with a matching first byte, but non-matching trailing bytes.

any insight/advice on how to obtain this?

@maurelian
Copy link
Contributor Author

Thinking it through, in the test suite, you can get the bytecode from the EIP20 artifact as a string.

Then you can do a simple string modification to change that bytecode slightly. Then you can deploy is using web3.eth.sendTransaction({data: modified_bytecode}).

@CryptoMan21
Copy link

sorry that i ask, i am totaly new in coding and try to understand all this... i created a coin already with 5mio. of it.... how do i get the value of money inside..... do i need to send the ethereum directly on the contract adress?? i dont want to try it cause i fear that i lose it

@maurelian
Copy link
Contributor Author

@CryptoMan21 Sorry to hear you're having trouble, but this isn't really the proper forum for support, and I don't really understand what you're asking. Perhaps start at https://ethereum.stackexchange.com/, and a few other tutorials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants