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

[2.0.x] epe-37 fixed test-contracts build #9101

Closed
wants to merge 2 commits into from

Conversation

kimjh2005
Copy link
Contributor

@kimjh2005 kimjh2005 commented May 16, 2020

Since the removal of those deprecated headers in eosio.cdt v1.7.x, it is not possible to build EOSIO with -DEOSIO_COMPILE_TEST_CONTRACTS=true with an installed version of eosio.cdt of 1.7.x or later.
https://blockone.atlassian.net/browse/EPE-37

Change Description

#1. Changed include path from eosiolib/* to eosiolib/capi/, eosiolib/core/, eosiolib/contracts/*.
#2. Added namespace if call to a function is ambiguous
#3. Handled function arguments changes.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@kimjh2005 kimjh2005 requested review from arhag and heifner May 18, 2020 17:09
@kimjh2005 kimjh2005 marked this pull request as ready for review May 18, 2020 17:10
@kimjh2005 kimjh2005 requested a review from larryk85 May 19, 2020 10:32
@kimjh2005 kimjh2005 changed the title fixed test-contracts build [2.0.x] epe-37 fixed test-contracts build May 19, 2020
#include <eosiolib/print.hpp>
#include <eosiolib/privileged.h>
#include <eosiolib/transaction.hpp>
#include <eosiolib/contracts/eosio/action.hpp>
Copy link
Contributor

Choose a reason for hiding this comment

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

The way the default includes work is that you can use #include <eosio/action.hpp>. You don't need the eosiolib/[contracts|core|capi] part. Also, we shouldn't be including the capi headers, use the c++ equivalent headers. These will include the capi headers for you.

@kimjh2005 kimjh2005 marked this pull request as draft May 20, 2020 13:09
@heifner
Copy link
Contributor

heifner commented May 22, 2020

This seems like a lot for release/2.0.x are you sure you want to back port this? @nksanthosh @b1bart

@kimjh2005
Copy link
Contributor Author

kimjh2005 commented May 22, 2020

If it doesn't have to be back ported to release/2.0.x. I will close the PR.

@kimjh2005
Copy link
Contributor Author

I will close this PR as it is too late to merge it to 2.0.x.

@kimjh2005 kimjh2005 closed this May 26, 2020
@kj4ezj kj4ezj deleted the epe-37-test-contracts-20x branch July 19, 2021 17:42
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.

3 participants