Skip to content

Commit 609c447

Browse files
committed
Another forgotten correction.
1 parent 2432b76 commit 609c447

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

linera-sdk/src/contract/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ where
167167

168168
/// Returns true if the corresponding contract uses a zero amount of storage.
169169
pub fn has_trivial_storage(&mut self, application: ApplicationId) -> bool {
170-
base_wit::has_trivial_storage(application.into())
170+
contract_wit::has_trivial_storage(application.into())
171171
}
172172
}
173173

linera-sdk/wit/base-runtime-api.wit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ interface base-runtime-api {
1616
assert-before: func(timestamp: timestamp);
1717
read-data-blob: func(hash: data-blob-hash) -> list<u8>;
1818
assert-data-blob-exists: func(hash: data-blob-hash);
19-
has-trivial-storage: func(application: application-id) -> bool;
2019
log: func(message: string, level: log-level);
2120
contains-key-new: func(key: list<u8>) -> u32;
2221
contains-key-wait: func(promise-id: u32) -> bool;

linera-sdk/wit/contract-runtime-api.wit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface contract-runtime-api {
2323
consume-fuel: func(fuel: u64);
2424
validation-round: func() -> option<u32>;
2525
write-batch: func(operations: list<write-operation>);
26+
has-trivial-storage: func(application: application-id) -> bool;
2627

2728
record account {
2829
chain-id: chain-id,

0 commit comments

Comments
 (0)