Questions tagged [evm]

For questions about the Ethereum Virtual Machine programming language, the programming language of smart contracts on the Ethereum blockchain.

173 questions
0
votes
1 answer

"VM Exception while processing transaction: revert", when running a chainlink node and try to deploy TestnetConsumer contract?

The scenario is when deploying a ATestnetConsumer.sol on mathchain via Remix, following the official tutorial to run a node on mathchain, which is a EVM-compatitable public chain. And I finish deploying the Oracle contract and LINKToken contract,…
Crypto D
  • 71
  • 2
0
votes
1 answer

How Ethereum verify that during the transaction i have enough money for the transaction?

i'm studyng ethereum and i have a question, how can ethereum, during the transaction, verify that my balance is enough for execute the transaction? It is the current smart contract that doeas this check, of is the EVM, that in some way, retrieve…
kri-dev
  • 699
  • 2
  • 7
  • 12
0
votes
1 answer

Solidity (solc) compile challenge

I'm trying to leverage what I thought was pretty good code I found to another answer that allows me to compile a number of .sol files in a directory at once while producing the .json files in a /build directory. I've spent several solid days on…
Ash
  • 11
  • 3
0
votes
1 answer

Is it possible to call a contract in solidity, using its storage but passing along msg.sender?

I have the following two contracts: contract A { uint256 someData = 3 function foo() public view returns (uint256) { // return something based on msg.sender and someData } } contract B { A public a; function bar() public { //…
lsankar4033
  • 509
  • 3
  • 14
0
votes
1 answer

Indirect Jump ByteCode

I am trying to understand Ethereum Bytecodes. So whenever there is any JUMP/JUMPI opcode it is preceded by some PUSH opcode. My question is how can I differentiate if this jump is direct or indirect? Can someone provide me some example of Ethereum…
Deepak Yadav
  • 53
  • 1
  • 7
0
votes
0 answers

Data scope within ethereum virtual machines

I would like to store some sensitive data within my contract in form of mapping Using Solidity ^0.5 mapping(someKey => someStruct) someMap; I'm aware of the privacy issue within smart contracts, the compiler automatically creates getter functions…
Arsalen
  • 9
  • 4
0
votes
1 answer

Solidity 0.5.0 too much variables

I try to compile a smart contract using Truffle framework and I get following output: Compiling ./contracts/PartProduction.sol... InternalCompilerError: Stack too deep, try using fewer variables. Compilation failed. See above. Truffle v5.0.1 (core:…
shogitai
  • 1,823
  • 1
  • 23
  • 50
0
votes
0 answers

Capstone ethereum

According to the capstone repository, the support for Ethereum Virtual Machine (EVM) bytecode was added. However, I cannot figure out, how to use capstone for EVM, neither with Java nor with python bindings (I tried only these two languages). The…
Briomkez
  • 567
  • 3
  • 17
0
votes
1 answer

Solidity field size of mapping type

Solidity allows mapping types inside a struct. How many bytes does such a field cost? Specifically I'd like to optimise the storage layout of the following type. struct Balance { uint40 amount; mapping(address => uint) allowances; }
Pascal de Kloe
  • 523
  • 4
  • 12
0
votes
1 answer

Ethereumjs-vm, run-transaction-complete example not printing storage

Running the example mentioned in the title, there is no output after the "---Storage---" line. According to my understanding, there should be a null_radix stored at the created address. (running gives no exceptions) please correct me if I’m wrong!
blintso
  • 15
  • 4
0
votes
2 answers

Does Solidity gets reduced to LLL in the process of compiling it to EVM bytecode?

Looking at the Solidity compiler Github repository, I see that the project also integrates an LLL compiler. This has made me wonder whether Solidity gets reduced to LLL in the process of compilation to EVM bytecode? I've read that LLL serves as a…
Shuzheng
  • 11,288
  • 20
  • 88
  • 186
-1
votes
0 answers

Can in hyperledger fabric can I use python to write chain code ( smart contract)

I am using hyperledger fabric and I wanted to know if I can use python to write the chain code (smart contract) and if I can is there something i need to install or no I read multiple sources that said I can use python but in the hyperledger fabric…
-1
votes
2 answers

Nodes in blockchain

I'm confused to understand nodes in blockchain. Here are my questions: Not sure but I heard that a node is software. So, is all the chain data stored on the client side? The client might not be able to store so much data, or am I wrong? How do they…
Jakhongir
  • 73
  • 1
  • 8
-1
votes
1 answer

Solidity transaction error: The called function should be payable if you send value and the value you send should be less than your current balance

I'm trying to send some Ether between contracts but I'm getting this error: The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your…
ikcoin
  • 1
-1
votes
1 answer

Creating a wallet on ether creates it on all EVN supported networks?

When I create a wallet on Ethereum (f.e. with ether.js) - I know the function that creates the keys is universal so it will create it for all Ethereum networks (Mainnet, Rinkbey, etc) but is the function universal for all EVM networks? will it also…
NivN
  • 45
  • 5
1 2 3
11
12