Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Fix bug in running the "transfer" test #7

Merged
merged 5 commits into from
Jul 3, 2019
Merged

Fix bug in running the "transfer" test #7

merged 5 commits into from
Jul 3, 2019

Conversation

anvacaru
Copy link

@anvacaru anvacaru commented Jun 28, 2019

  • Removed an if statement which prevented the data from kevm-vm to be correctly processed.

  • Updated the files in the dist folder.

  • Removed the try-catch block and now from every incoming VMQuery the first four bytes which represent the length of the message are ignored for deserialization.

@anvacaru anvacaru changed the title Fix transfer test Fix bug in running the "transfer" test Jun 28, 2019
dist/runCall.js Outdated
@@ -229,8 +396,8 @@ module.exports = function (opts, cb) {

function createEthereumConfig() {
var ethereumConfig = new msg_pb.EthereumConfig();
ethereumConfig.setMaxcodesize(new Uint8Array([96, 0]));
ethereumConfig.setAccountstartnonce(new Uint8Array([0]));
ethereumConfig.setMaxcodesize(new Uint8Array([127, 255, 255, 255]));
Copy link
Member

Choose a reason for hiding this comment

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

Where is this number [127, 255, 255, 255] coming from? I see the same number used for functions like setPetersburgblocknumber and setConstantinopleblocknumber. It looks like it's being used as a true` flag or something?

Copy link
Author

Choose a reason for hiding this comment

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

This line and the next one were modified for debugging purposes and I forgot to revert the changes. The number [127, 255, 255, 255] was chosen to avoid a block number collision (see PR#3).

@ehildenb ehildenb merged commit 5ce1381 into master Jul 3, 2019
@ehildenb ehildenb deleted the fix_transfer branch July 3, 2019 15:06
anvacaru added a commit that referenced this pull request Jul 8, 2019
anvacaru added a commit that referenced this pull request Jul 9, 2019
ehildenb pushed a commit that referenced this pull request Jul 9, 2019
* added evm-semantics submodule

* add Jenkinsfile and Makefile

* add jobs for ganache and erc20 repos

* fix typo

* wip run truffle test

* run totalsupply test

* fix typos in Jenkins file

* add Dockerfile

* modified Jenkinsfile wip

* tweaks for pipeline #1

* tweaks for pipeline #2

* tweaks for pipeline #3

* tweaks for pipeline #4

* tweaks for pipeline #5

* tweaks for pipeline #6

* tweaks for pipeline #7

* update submodule

* Dockerfile: add npm dependency

* Jenkinsfile, Dockerfile: correct dockerfile to use

* Dockerfile: add node-gyp dep, and nodejs-dev

* Dockerfile: add libssl1.0-dev dep

* Dockerfile: correct paths for ADDs

* Dockerfile: libyaml-cpp-dev => libyaml-dev

* Makefile: remove uses of sudo, whitespace formatting

* Jenkinsfile, Makefile: formatting, add deps-npm target

* Makefile: setup PATH correctly for local npm install

* Makefile: use simple expansion for PATH

* Makefile: correct quotes

* Dockerfile, Jenkinsfile, Makefile: setup npm in Dockerfile

* Makefile: make sure submodules are updated before building ganache

* Makefile: ensure that BUILD_DIR is set

* Dockerfile: simpler expression for npm config

* Dockerfile: hardcode path to home directory for NPM_PACKAGES

* tweaks for pipeline #8

* tweaks for pipeline #9

* tweaks for pipeline #10

* tweaks for pipeline #11

* fix typo

* compiling the contracts in the build stage

* remove runtest.js

* package.json: remove unused package

* Jenkinsfile: redirect output from kevm-vm and ganache-cli to log files

* Jenkinsfile: change try-catch block

* Jenkinsfile: separate cleanup stage

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

Successfully merging this pull request may close these issues.

2 participants