Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit c0b360e

Browse files
committed
dead code warnings suppressed by unstable-interface attributes
1 parent e22a338 commit c0b360e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frame/contracts/src/wasm/runtime.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ pub enum RuntimeCosts {
139139
/// Weight of calling `seal_caller`.
140140
Caller,
141141
/// Weight of calling `seal_is_contract`.
142+
#[cfg(feature = "unstable-interface")]
142143
IsContract,
143144
/// Weight of calling `seal_caller_is_origin`.
145+
#[cfg(feature = "unstable-interface")]
144146
CallerIsOrigin,
145147
/// Weight of calling `seal_address`.
146148
Address,
@@ -229,7 +231,9 @@ impl RuntimeCosts {
229231
let weight = match *self {
230232
MeteringBlock(amount) => s.gas.saturating_add(amount.into()),
231233
Caller => s.caller,
234+
#[cfg(feature = "unstable-interface")]
232235
IsContract => s.is_contract,
236+
#[cfg(feature = "unstable-interface")]
233237
CallerIsOrigin => s.caller_is_origin,
234238
Address => s.address,
235239
GasLeft => s.gas_left,

0 commit comments

Comments
 (0)