Open 0xstonegm opened 2 months ago
another fix is check if remove_deprecated_request_unit_ix::id() is activated or not like the following:
use solana_sdk::{
feature_set::{
self, remove_deprecated_request_unit_ix, use_default_units_in_fee_calculation,
FeatureSet,
}
}
feature_set.is_active(&remove_deprecated_request_unit_ix::id())
commit e08b37a9bbfa40d5789fa3d4abba61348de61da3 introduced
RequestUnitsDeprecated
but it got removed in v1.18, so the
solana-* = "1.17"
inCargo.toml
should besolana-* = "~1.17"
to restrictsolana-*
version to avoid compiler errors like the title above sincesolana-devtools
no longer compatible with>=1.18
versions.