Skip to content

Commit 3004820

Browse files
authored
Merge pull request #404 from sven-hash/patch-11
remove: map only avalaible in testnet
2 parents 1fcd3a7 + c7373d8 commit 3004820

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/ralph/types.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ Contract Bar() {
164164

165165
### Map
166166

167-
The map data structure is currently available in the [devnet release](https://github.com/alephium/alephium-stack/tree/master/devnet) and the [testnet release](https://github.com/alephium/alephium-stack/tree/master/devnet) of the full node.
168-
169167
In Ralph, Maps are defined as global contract attributes, eliminating the need for initialization. The syntax is `mapping[KeyType, ValueType] mapName` where the `KeyType` can be any primitive types (Bool, U256, I256, Address, ByteVec), and the `ValueType` can be any type.
170168

171169
Under the hood, each Map entry is constructed as a subcontract of the current contract. Therefore, creating a map entry entails a minimal contract deposit, easily done using the built-in function `mapEntryDeposit!()`.

0 commit comments

Comments
 (0)