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

Update EVM usage example #1772

Merged
merged 1 commit into from
Jul 9, 2020
Merged

Update EVM usage example #1772

merged 1 commit into from
Jul 9, 2020

Conversation

wolflo
Copy link
Contributor

@wolflo wolflo commented Jul 9, 2020

Addresses #1771 (at least for the example in the readme). Increases the balance of the created account so the user has enough eth to send the contract creation transaction with the default transaction gas.

It's possible it would be more helpful to specify the gas for solidity_create_contract instead, but this keeps the example as simple as possible.

@CLAassistant
Copy link

CLAassistant commented Jul 9, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@feliam feliam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!
Gas and balance got a more correct representation in the last release.

@wolflo
Copy link
Contributor Author

wolflo commented Jul 9, 2020

@feliam that's great! Should I close this then if the examples won't run into this issue anymore?

Edit: referring to the latest gas and balance changes, which sound like they potentially fix this issue

@feliam
Copy link
Contributor

feliam commented Jul 9, 2020

No no. Old examples are failing because by default now the transaction fee and gas are correctly debited from the caller's balance.

We need a specific configuration constant that disables all ethereum balance and gas calculations. So it is easier for the user that is interested in a different aspect of the contract

Merging this PR in 3 2 1...

@feliam feliam merged commit 2ce7bb8 into trailofbits:master Jul 9, 2020
ekilmer added a commit that referenced this pull request Jul 17, 2020
* master:
  Create a model for strncpy (#1770)
  Add doc, fix output bugs (#1769)
  Update EVM usage example (#1772)
  New working model of strlen (#1725)
  Typo (#1768)
  Specialized iterative serialization for Array (#1756)
  Enable nightly uploads to PyPI (#1757)
  Manticore 0.3.4 (#1720)
  Manticore verifier (#1717)
  Nightly MacOS Tests (#1614)
  Remove/procrastinate solver query in ether leak detector (#1727)
  Fix constant folding & constraint set slicing (#1706)
@ehennenfent ehennenfent added this to the Manticore 0.3.5 milestone Sep 3, 2020
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

Successfully merging this pull request may close these issues.

None yet

4 participants