Skip to content

Commit

Permalink
Show abi.encoding/decoding example
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa committed Feb 6, 2024
1 parent f2374ae commit 86a5805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
url: "chainlink-functions/tutorials/importing-packages",
},
{
title: "Using ABI encoding and decoding",
title: "Returning multiple responses and decoding them in your smart contract",
url: "chainlink-functions/tutorials/abi-decoding",
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/content/chainlink-functions/tutorials/abi-decoding.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
section: chainlinkFunctions
date: Last Modified
title: "Using ABI encoding and decoding"
title: "Returning multiple responses and decoding them in your smart contract"
metadata:
linkToWallet: true
whatsnext:
Expand All @@ -15,7 +15,7 @@ import { Aside, CopyText, CodeSample } from "@components"
import { Tabs } from "@components/Tabs"
import ChainlinkFunctions from "@features/chainlink-functions/common/ChainlinkFunctions.astro"

In the [Using Imports with Functions](/chainlink-functions/tutorials/importing-packages) tutorial, we explored the fundamentals of module imports. This tutorial will use the Ethers library [encode](https://docs.ethers.org/v6/api/abi/abi-coder/#AbiCoder-encode) function to perform ABI encoding of a complex data type. This technique is instrumental in using the [ABI specifications](https://docs.soliditylang.org/en/v0.8.24/abi-spec.html) in Solidity to decode the response in your smart contract.
In the [Using Imports with Functions](/chainlink-functions/tutorials/importing-packages) tutorial, we explored the fundamentals of module imports. This tutorial will teach you how to use the Ethers library [encode](https://docs.ethers.org/v6/api/abi/abi-coder/#AbiCoder-encode) function to perform ABI encoding of several responses. Then, you will use the [ABI specifications](https://docs.soliditylang.org/en/v0.8.24/abi-spec.html) in Solidity to decode the responses in your smart contract.

<Aside type="caution">
Users are fully responsible for any dependencies their JavaScript source code imports. Chainlink is not responsible
Expand Down

0 comments on commit 86a5805

Please sign in to comment.