diff --git a/examples/completeErc20Withdrawal.ts b/examples/completeErc20Withdrawal.ts index d82cb1d1..1e60c054 100644 --- a/examples/completeErc20Withdrawal.ts +++ b/examples/completeErc20Withdrawal.ts @@ -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: '', diff --git a/examples/completeEthWithdrawal.ts b/examples/completeEthWithdrawal.ts index 3fb91384..eb416cd0 100644 --- a/examples/completeEthWithdrawal.ts +++ b/examples/completeEthWithdrawal.ts @@ -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', }, diff --git a/examples/completeNftWithdrawal.ts b/examples/completeNftWithdrawal.ts index 29550bb1..04eeff8f 100644 --- a/examples/completeNftWithdrawal.ts +++ b/examples/completeNftWithdrawal.ts @@ -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: '',