From acb1490207c779187e8bcbfdce9e945769da41fe Mon Sep 17 00:00:00 2001 From: ghimire007 <69514062+ghimire007@users.noreply.github.com> Date: Tue, 5 Sep 2023 09:48:25 +1000 Subject: [PATCH] Update serialization-interface.md --- .../serialization-interface.md | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/sdk/rust/contract-interface/serialization-interface.md b/docs/sdk/rust/contract-interface/serialization-interface.md index 4c10632001e..97e7f49c9e5 100644 --- a/docs/sdk/rust/contract-interface/serialization-interface.md +++ b/docs/sdk/rust/contract-interface/serialization-interface.md @@ -1,6 +1,8 @@ --- sidebar_position: 5 --- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; # Serialization Protocols @@ -57,7 +59,26 @@ https://github.com/mikedotexe/rust-status-message/blob/b83c5126fdbe0f19bc904e547 To call this with NEAR CLI, use a command similar to this: - near call rust-status-message.demo.testnet set_status_borsh --base64 'DAAAAEFsb2hhIGhvbnVhIQ==' --accountId demo.testnet + + + +```bash +near call rust-status-message.demo.testnet set_status_borsh --base64 'DAAAAEFsb2hhIGhvbnVhIQ==' --accountId demo.testnet +``` + + + + + + + +```bash +near contract call-function as-transaction rust-status-message.demo.testnet set_status_borsh base64-args 'DAAAAEFsb2hhIGhvbnVhIQ==' prepaid-gas '30 TeraGas' attached-deposit '0 NEAR' sign-as demo.testnet network-config testnet sign-with-keychain send +``` + + + + See more details in [this GitHub gist](https://gist.github.com/mfornet/d8a94af333a68d67affd8cb78464c7c0) from [Marcelo](https://gist.github.com/mfornet). @@ -150,4 +171,4 @@ impl Contract { self.data.into() } } -``` \ No newline at end of file +```