mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 06:40:53 +00:00
fix build
This commit is contained in:
@@ -99,7 +99,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
Env env(
|
||||
*this,
|
||||
envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.extension_size_limit = 10; // 10 bytes
|
||||
cfg->fees.bytecodeSizeLimit = 10; // 10 bytes
|
||||
return cfg;
|
||||
}),
|
||||
features);
|
||||
@@ -125,7 +125,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
*this,
|
||||
envconfig([](std::unique_ptr<Config> cfg) {
|
||||
// WASM runtime disabled
|
||||
cfg->FEES.extension_compute_limit = 0;
|
||||
cfg->fees.gasLimit = 0;
|
||||
return cfg;
|
||||
}),
|
||||
features);
|
||||
@@ -149,7 +149,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
Env env(
|
||||
*this,
|
||||
envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.extension_size_limit = 0; // WASM upload disabled
|
||||
cfg->fees.bytecodeSizeLimit = 0; // WASM upload disabled
|
||||
return cfg;
|
||||
}),
|
||||
features);
|
||||
@@ -202,8 +202,8 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
|
||||
auto const escrowCreate = escrow::create(alice, carol, XRP(500));
|
||||
|
||||
// string of length maxWasmDataLength * 2 + 2
|
||||
std::string const longData((maxWasmDataLength + 1) * 2, 'B');
|
||||
// string of length kMaxWasmDataLength * 2 + 2
|
||||
std::string const longData((kMaxWasmDataLength + 1) * 2, 'B');
|
||||
env(escrowCreate,
|
||||
escrow::Data(longData),
|
||||
escrow::Bytecode(kLedgerSqnWasmHex),
|
||||
@@ -216,7 +216,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
Env env(
|
||||
*this,
|
||||
envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->START_UP = StartUpType::Fresh;
|
||||
cfg->startUp = StartUpType::Fresh;
|
||||
return cfg;
|
||||
}),
|
||||
features);
|
||||
@@ -374,7 +374,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
Env env(
|
||||
*this,
|
||||
envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.extension_compute_limit = 1'000; // in gas
|
||||
cfg->fees.gasLimit = 1'000; // in gas
|
||||
return cfg;
|
||||
}),
|
||||
features);
|
||||
@@ -397,7 +397,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
using namespace test::jtx;
|
||||
using namespace std::chrono;
|
||||
Env env{*this, envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.extension_compute_limit = 0;
|
||||
cfg->fees.gasLimit = 0;
|
||||
return cfg;
|
||||
})};
|
||||
|
||||
@@ -890,7 +890,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
Env env(
|
||||
*this,
|
||||
envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.gas_price = 1'000'000; // in gas
|
||||
cfg->fees.gasPrice = 1'000'000; // in gas
|
||||
return cfg;
|
||||
}),
|
||||
features);
|
||||
@@ -1135,7 +1135,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite
|
||||
return Env(
|
||||
*this,
|
||||
envconfig([&sizeLimit](std::unique_ptr<Config> cfg) {
|
||||
cfg->FEES.extension_size_limit = *sizeLimit;
|
||||
cfg->fees.bytecodeSizeLimit = *sizeLimit;
|
||||
return cfg;
|
||||
}),
|
||||
features);
|
||||
|
||||
Reference in New Issue
Block a user