Skip to content

Commit 4a42d7b

Browse files
authored
fix: source code tips contract-storage.adoc (#1464)
1 parent c8a74e1 commit 4a42d7b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/Starknet/modules/architecture-and-concepts/pages/smart-contracts/contract-storage.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The contract's storage is a persistent storage space where you can read, write,
1111

1212
The basic function for writing to storage writes, value to key is:
1313

14-
[source,js]
14+
[source,cairo]
1515
----
1616
storage_write_syscall(address_domain, address, value)
1717
----
@@ -24,7 +24,7 @@ address is determined from the variable's name and keys.
2424

2525
Both `storage_read` and `storage_write` are system calls that can be imported by adding the line:
2626

27-
[source,javascript]
27+
[source,cairo]
2828
----
2929
use starknet::syscalls::storage_read_syscall;
3030
use starknet::syscalls::storage_write_syscall;
@@ -68,5 +68,3 @@ struct Storage {
6868
allowances: LegacyMap::<(ContractAddress, ContractAddress), u256>,
6969
}
7070
----
71-
72-

0 commit comments

Comments
 (0)