Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ethyl #62

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions test/cpp/test/src/rewards_contract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <limits>
#include <chrono>

#include <oxen/log.hpp>
#include "ethyl/provider.hpp"
#include "ethyl/signer.hpp"
#include "ethyl/utils.hpp"
Expand Down Expand Up @@ -32,7 +31,6 @@ std::vector<unsigned char> seckey;

int main(int argc, char *argv[]) {

oxen::log::add_sink(oxen::log::Type::Print, "stderr");
// NOTE: Setup default provider
config = ethbls::get_config(ethbls::network_type::LOCAL);
std::cout << "Note to run these tests, ensure that a local Ethereum development network is running at " << config.RPC_URL << "\n";
Expand Down Expand Up @@ -130,7 +128,6 @@ static void verifyEVMServiceNodesAgainstCPPState(const ServiceNodeList& snl)

size_t test_count{0};
TEST_CASE( "Rewards Contract", "[ethereum]" ) {
oxen::log::debug(oxen::log::Cat("ETH CONTRACT TESTS"), "Test case {} begin", ++test_count);
REQUIRE(defaultProvider.evm_setAutomine(true));
bool success_resetting_to_snapshot = defaultProvider.evm_revert(snapshot_id);
snapshot_id = defaultProvider.evm_snapshot();
Expand All @@ -151,8 +148,6 @@ TEST_CASE( "Rewards Contract", "[ethereum]" ) {
hash = signer.sendTransaction(tx, seckey);
REQUIRE(hash != "");
REQUIRE(defaultProvider.transactionSuccessful(hash));
oxen::log::debug(oxen::log::Cat("ETH CONTRACT TESTS"), "Test case {} SECTION begin", test_count);

SECTION( "Add a public key to the smart contract" ) {
REQUIRE(rewards_contract.serviceNodesLength() == 0);

Expand Down