Skip to content

Commit c091d2f

Browse files
authored
Merge pull request #21 from glinda93/patch-1
fix typo in memory_array_building
2 parents 82e5fcf + 3bd6021 commit c091d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/memory_array_building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The most obvious consequence of applying the Memory Array Building pattern is th
7979
But the pattern does not only come with benefits. By implementing it, we increase complexity. It is unintuitive to store all items in one array compared to having separate arrays. Also the concept of doing aggregation on every single call instead of aggregating once and storing it that way might be confusing in the beginning.
8080

8181
## Known Uses
82-
An inplementation of this pattern can be found in the infamous [CryptoKitties contract](https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d\#code). In line 651 we find a function called `\lstinline|tokensOfOwner(address _owner)` which returns the IDs of all Kitties that belong to a given address.
82+
An implementation of this pattern can be found in the infamous [CryptoKitties contract](https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d\#code). In line 651 we find a function called `\lstinline|tokensOfOwner(address _owner)` which returns the IDs of all Kitties that belong to a given address.
8383

8484
Another example is the now closed, Ethereum based slot machine [Slotthereum](https://etherscan.io/address/0xda8fe472e1beae12973fa48e9a1d9595f752fce0\#code). In this contract, the pattern was used in a similar fashion as in our example, to retrieve the IDs of all games.
8585

0 commit comments

Comments
 (0)