Comments (1)
@sorpaas This is what I think is happening:
- When calling create/call/... from the contract, it uses the
take_l64
as expected. The way it seems to work is by "consuming" the 64th of the current gas left (around U256::max for estimateGas) to set the gas left at 63th of the gas left (as defined in ethereum/EIPs#150) however, when returning from that create/call, the 64th that has been consumed is not restored.
See https://github.com/rust-blockchain/evm/blob/master/src/executor/stack/mod.rs#L322 where the 64th is recorded as a cost.
Do you have an idea how to solve it ?
from evm.
Related Issues (20)
- Source code of the bench mark contract? HOT 1
- When will support the sha256 precompile function? HOT 2
- Does sputink support reverts with custom messages?
- PUSH opcode does not have the same behavior as ethereum
- Reduce usage of `Vec<u8>`
- Tracking issue: chunk gas metering
- Tracking issue: ROM and sha3 to `evm-core`
- Tracking issue: Apache-2 testing code
- Tracking issue: flatten the eval stack
- Tracking issue: async runtime
- Tracking issue: debug interface
- Wrong Execution Result using frontier hardfork HOT 6
- BALANCE opcode must return a different value for the origin account HOT 1
- `no-std` fails when trying to build
- Clippy pass fails HOT 1
- Enable/disable STATICCALL Opcode HOT 1
- Remove touched empty accounts when empty_considered_exists is disabled.
- Feature Request: Separate 'In Memory' Module for External Import HOT 1
- Issues injecting CALLDATA and getting a return value out of it. HOT 2
- Is there a working example of evm::transact?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evm.