diff --git a/examples/substrate-to-evm-fungible-transfer/README.md b/examples/substrate-to-evm-fungible-transfer/README.md index dc905e363..18e447ba0 100644 --- a/examples/substrate-to-evm-fungible-transfer/README.md +++ b/examples/substrate-to-evm-fungible-transfer/README.md @@ -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. diff --git a/examples/substrate-to-evm-fungible-transfer/src/transfer.ts b/examples/substrate-to-evm-fungible-transfer/src/transfer.ts index 6ff7746ef..90fc78eed 100644 --- a/examples/substrate-to-evm-fungible-transfer/src/transfer.ts +++ b/examples/substrate-to-evm-fungible-transfer/src/transfer.ts @@ -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"; @@ -68,4 +66,4 @@ const substrateTransfer = async (): Promise => { substrateTransfer() .catch((e) => console.log(e)) - .finally(() => { }); + .finally(() => {});