From add0b4cfb08225909910f649cd8d97e4d17d78fe Mon Sep 17 00:00:00 2001 From: Pierre Seznec <34547263+peterjah@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:46:07 +0200 Subject: [PATCH] Update docs/build/smart-contract/basic-concepts/serializable.mdx Co-authored-by: Modship --- docs/build/smart-contract/basic-concepts/serializable.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/smart-contract/basic-concepts/serializable.mdx b/docs/build/smart-contract/basic-concepts/serializable.mdx index 2bb796d8a..9fec3f2e8 100644 --- a/docs/build/smart-contract/basic-concepts/serializable.mdx +++ b/docs/build/smart-contract/basic-concepts/serializable.mdx @@ -33,7 +33,7 @@ export class User implements Serializable { - The constructor initializes User instances with a name and an age. - Default values are provided to allow for easy instantiation. 2. serialize Method: - - This method uses Args to convert the name and age properties into a byte array. It returns a serialized representation of the User object, which can then be stored in the contract's storage. + - This method uses `Args` to convert the `name` and `age` properties into a byte array. It returns a serialized representation of the User object, which can then be stored in the contract's storage. 3. deserialize Method: - The deserialize method takes in a byte array and an offset, reconstructing the User object by extracting the name and age values. This enables the User instance to be rehydrated from storage.