Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihirota committed Feb 19, 2024
1 parent 63c36b0 commit 8d90fd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions examples/completeErc20Withdrawal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import { generateWalletConnection } from './libs/walletConnection';

const client = new ImmutableX(Config.SANDBOX);

const starkPublicKey = await walletConnection.starkSigner.getAddress();

const completeWithdrawalResponse = await client.completeWithdrawal(
walletConnection.ethSigner,
starkPublicKey,
walletConnection,
{
type: 'ERC20',
tokenAddress: '',
Expand Down
5 changes: 1 addition & 4 deletions examples/completeEthWithdrawal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import { generateWalletConnection } from './libs/walletConnection';

const client = new ImmutableX(Config.SANDBOX);

const starkPublicKey = await walletConnection.starkSigner.getAddress();

const completeWithdrawalResponse = await client.completeWithdrawal(
walletConnection.ethSigner,
starkPublicKey,
walletConnection,
{
type: 'ETH',
},
Expand Down
5 changes: 1 addition & 4 deletions examples/completeNftWithdrawal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import { generateWalletConnection } from './libs/walletConnection';

const client = new ImmutableX(Config.SANDBOX);

const starkPublicKey = await walletConnection.starkSigner.getAddress();

const completeWithdrawalResponse = await client.completeWithdrawal(
walletConnection.ethSigner,
starkPublicKey,
walletConnection,
{
type: 'ERC721',
tokenAddress: '',
Expand Down

0 comments on commit 8d90fd7

Please sign in to comment.