Skip to content

Commit

Permalink
chore: small fixes to substrate to evm example (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola authored Nov 7, 2023
1 parent 8bf7067 commit 19190f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/substrate-to-evm-fungible-transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ yarn run transfer
```

The example will use `@polkadot/keyring` in conjuction with the sygma-sdk to
create a transfer from `Roccoco Phala` to `Sepolia`.
create a transfer from `Roccoco Phala` to `Goerli`.

Replace the placeholder values in the script with your own Substrate wallet mnemonic and destination EVM address.

Expand Down
10 changes: 4 additions & 6 deletions examples/substrate-to-evm-fungible-transfer/src/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import { Keyring } from "@polkadot/keyring";
import { ApiPromise, WsProvider } from "@polkadot/api";
import { cryptoWaitReady } from "@polkadot/util-crypto";
import dotenv from "dotenv";

import {
Environment,
SubstrateAssetTransfer,
} from "@buildwithsygma/sygma-sdk-core";
import { Environment, Substrate } from "@buildwithsygma/sygma-sdk-core";

dotenv.config();

const { SubstrateAssetTransfer } = Substrate;

const GOERLI_CHAIN_ID = 5;
const RESOURCE_ID =
"0x0000000000000000000000000000000000000000000000000000000000001000";
Expand Down Expand Up @@ -68,4 +66,4 @@ const substrateTransfer = async (): Promise<void> => {

substrateTransfer()
.catch((e) => console.log(e))
.finally(() => { });
.finally(() => {});

0 comments on commit 19190f0

Please sign in to comment.