Skip to content

Commit a9eea11

Browse files
wip: fpi
1 parent 48e628b commit a9eea11

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

masm/accounts/count_reader.masm

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@ export.copy_count
99

1010
push.0
1111
# [index, count]
12+
13+
push.111 debug.stack drop
1214

1315
exec.account::set_item
1416
# => []
15-
17+
18+
push.222 debug.stack drop
19+
20+
push.0
21+
exec.account::get_item
22+
23+
push.333 debug.stack drop
24+
1625
exec.sys::truncate_stack
1726
# => []
1827
end

rust-client/src/bin/counter_contract_fpi.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ async fn main() -> Result<(), ClientError> {
232232

233233
// Submit transaction to the network
234234
let _ = client.submit_transaction(tx_result).await;
235+
client.sync_state().await.unwrap();
235236

236-
sleep(Duration::from_secs(7)).await;
237+
sleep(Duration::from_secs(10)).await;
237238

238239
client.sync_state().await.unwrap();
239240

0 commit comments

Comments
 (0)