Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

EIP198 Not Supported? #651

Closed
kendricktan opened this issue Jun 10, 2019 · 1 comment
Closed

EIP198 Not Supported? #651

kendricktan opened this issue Jun 10, 2019 · 1 comment

Comments

@kendricktan
Copy link

I'm currently trying to use some of the ECC features from Vyper e.g. ecrecover, and ecadd on ganache-cli -k byzantium

Expected Behavior

Function executes

Current Behavior

Function throws a Error: VM Exception while processing transaction: invalid opcode

Possible Solution

Unsure

Steps to reproduce

  1. Deploy contract to ganache0cli (code below)
  2. Call function func(<bytes>)
  3. Error gets thrown
@public
def func(_bytes: bytes32):
    value: uint256 = convert(_bytes, uint256)    
    valueArr: uint256[2] = [value, value]
    
    retVal: uint256[2] = ecadd(valueArr, valueArr)

Context

Trying to do some ECC stuff on the EVM on ganache-cli for quicker product iteration

Your Environment

  • Node: v10.15.3
  • Vyper: 0.1.0b10
  • ganche-cli: Ganache CLI v6.4.3 (ganache-core: 2.5.5)

Logs

eth_sendTransaction

  Transaction: 0x6ec61f9b4a57407d7bb44ca94bbb82dcff2ccbdfc1bfa864d192587c830e7a45
  Gas usage: 25043
  Block Number: 4
  Block Time: Mon Jun 10 2019 23:02:30 GMT+1000 (Australian Eastern Standard Time)
  Runtime Error: revert

eth_getBlockByNumber
net_version
eth_accounts
@kendricktan
Copy link
Author

kendricktan commented Jun 10, 2019

Nvm, turns out I had to run it with the command ganache-cli -k=petersburg as it was solidity >= 0.5.0

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

No branches or pull requests

1 participant