From 232f4598148826e83e1aacd6d0146e02d4607758 Mon Sep 17 00:00:00 2001 From: PhigrosX <451464364@qq.com> Date: Tue, 5 Nov 2024 14:10:52 +0800 Subject: [PATCH] Update basics.mdx correct minor errors on TS SDK page: Transaction Building/ Sui Programmable Transaction Basics/ Pure values fix " you you can ..." -> "you can ..." --- sdk/docs/pages/typescript/transaction-building/basics.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/docs/pages/typescript/transaction-building/basics.mdx b/sdk/docs/pages/typescript/transaction-building/basics.mdx index 4a3d5bc82ae7d..12b0f8d767e4d 100644 --- a/sdk/docs/pages/typescript/transaction-building/basics.mdx +++ b/sdk/docs/pages/typescript/transaction-building/basics.mdx @@ -140,7 +140,7 @@ tx.transferObjects([coin], tx.pure.address('0xSomeSuiAddress')); tx.transferObjects([coin], tx.pure(bcs.Address.serialize('0xSomeSuiAddress'))); ``` -To pass `vector` or `option` types, you you can pass use the corresponding methods on `tx.pure`, use +To pass `vector` or `option` types, you can pass use the corresponding methods on `tx.pure`, use tx.pure as a function with a type argument, or serialize the value before passing it to tx.pure using the bcs sdk: