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

fix: g_gas_price constant is too large for its type #175

Merged
merged 2 commits into from Aug 17, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion c/polyjuice_globals.h
Expand Up @@ -38,7 +38,8 @@ static evmc_address g_tx_origin = {0};
static uint8_t g_script_code_hash[32] = {0};
static uint8_t g_script_hash_type = 0xff;

static uint128_t g_gas_price = 0xffffffffffffffffffffffffffffffffu;
#define UINT128_MAX uint128_t(__int128_t(-1L));
static uint128_t g_gas_price = UINT128_MAX;

/* Minimal gas of a normal transaction*/
#define MIN_TX_GAS 21000
Expand Down
3 changes: 2 additions & 1 deletion devtools/ci/integration-test.sh
Expand Up @@ -23,7 +23,8 @@ else
git clone --depth=1 https://github.com/ethereum/tests.git $ETHEREUM_TEST_DIR
fi
cd $GODWOKEN_DIR
git fetch origin develop
# checkout https://github.com/nervosnetwork/godwoken/commits/v1.5.0-rc2
git fetch origin v1.5.0-rc2
git checkout FETCH_HEAD
git submodule update --init --recursive --depth=1

Expand Down