Skip to content

Commit

Permalink
fix: eth-tx code snippets (#1758)
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez authored Feb 26, 2024
1 parent 959d38b commit 9e3f514
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/8.abstraction/chain-signatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Chain Signatures unlock the ability for a single account to transact across mult
In this document we cover the steps necessary to sign a transaction for another chain, we recommend you to read our [**overview of Chain Signatures**](../1.concepts/abstraction/chain-signatures.md) before, as well as some of its [**use cases**](../1.concepts/abstraction/signatures/use-case.md).

:::info
Check our example showing how to [sign Ethereum transactions on NEAR](https://github.com/near-examples/near-multichain)
See our [web-app example](https://github.com/near-examples/near-multichain) and [component example](https://test.near.social/md1.testnet/widget/chainsig-sign-eth-tx) showing how a NEAR account can create an Ethereum testnet transaction.
:::

---
Expand All @@ -24,7 +24,7 @@ The first step is to use Chain Signatures is to construct a payload (transaction
<TabItem value="Ξ Ethereum">
<Github language="js"
url="https://github.com/near-examples/near-multichain/blob/main/src/ethereum.js"
start="12" end="33" />
start="18" end="40" />
</TabItem>
<TabItem value="₿ Bitcoin">
```js
Expand All @@ -44,7 +44,7 @@ The method expects the `payload` to be signed for the target blockchain, and a `
<TabItem value="Ξ Ethereum">
<Github language="js"
url="https://github.com/near-examples/near-multichain/blob/main/src/index.js"
start="24" end="33" />
start="49" end="54" />
</TabItem>
<TabItem value="₿ Bitcoin">

Expand All @@ -59,8 +59,8 @@ The contract will take some time to respond, as it needs to wait for the [`MPC s
<Tabs groupId="code-tabs">
<TabItem value="Ξ Ethereum">
<Github language="js"
url="https://github.com/near-examples/near-multichain/blob/main/src/index.js"
start="35" end="48" />
url="https://github.com/near-examples/near-multichain/blob/main/src/ethereum.js"
start="49" end="57" />
</TabItem>
<TabItem value="₿ Bitcoin">

Expand All @@ -80,7 +80,7 @@ Once we have reconstructed the signature, we can relay it to the corresponding n
<TabItem value="Ξ Ethereum">
<Github fname="index.js" language="js"
url="https://github.com/near-examples/near-multichain/blob/main/src/ethereum.js"
start="36" end="40" />
start="43" end="47" />
</TabItem>
<TabItem value="₿ Bitcoin">

Expand Down
15 changes: 9 additions & 6 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const sidebar = {
]
},
{
"Network":[
"Network": [
"concepts/basics/validators",
"concepts/basics/networks",
"concepts/basics/epoch",
Expand Down Expand Up @@ -280,11 +280,14 @@ const sidebar = {
"develop/relayers/build-relayer",
'tools/fastauth-sdk',
'abstraction/chain-signatures',
]},
{"Multichain Gas Relayer": [
"develop/relayers/multichain-server",
"develop/relayers/gas-station",
]},
{
"Multichain Gas Relayer": [
"develop/relayers/multichain-server",
"develop/relayers/gas-station",
]
},
]
},
{
"type": "html",
"value": "<hr/>"
Expand Down

0 comments on commit 9e3f514

Please sign in to comment.