From fef32ba834936db97521dd666dc2cc92b7a76b44 Mon Sep 17 00:00:00 2001 From: stevealexrs <59494379+stevealexrs@users.noreply.github.com> Date: Thu, 2 Feb 2023 11:29:14 +0800 Subject: [PATCH 1/2] Fix default value in tutorial --- 1/state_vars_and_ints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1/state_vars_and_ints.md b/1/state_vars_and_ints.md index 44ce8fa..d25a810 100644 --- a/1/state_vars_and_ints.md +++ b/1/state_vars_and_ints.md @@ -13,7 +13,7 @@ State variables are permanently stored in contract storage. This means they're w storedData: int128 ``` -In this example contract, we created a [`int128`](https://vyper.readthedocs.io/en/stable/types.html#signed-integer-128-bit) called `storedData` which holds a _default_ value of `1`. +In this example contract, we created a [`int128`](https://vyper.readthedocs.io/en/stable/types.html#signed-integer-128-bit) called `storedData` which holds a _default_ value of `0`. ## Unsigned Integers: `uint256` From 0d5118f77a678974bf7f6df1dbdad96fef45ef4c Mon Sep 17 00:00:00 2001 From: stevealexrs <59494379+stevealexrs@users.noreply.github.com> Date: Thu, 2 Feb 2023 14:04:05 +0800 Subject: [PATCH 2/2] Fix integer default values --- 2/empty.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2/empty.md b/2/empty.md index 9096f98..24e2a66 100644 --- a/2/empty.md +++ b/2/empty.md @@ -24,8 +24,8 @@ Here you can find a list of all types and default values: | bool | False | | bytes32 | 0x0000000000000000000000000000000000000000000000000000000000000000 | | decimal | 0.0 | -| int128 | 1 | -| uint256 | 1 | +| int128 | 0 | +| uint256 | 0 | ## Put it to the test