Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DNR500 committed May 24, 2024
1 parent 7671e17 commit fb9dc89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/node/examples/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function run() {
return step.execution
}
}, undefined)
console.log(lastExecution)
console.info(lastExecution)
},
}
await executeRoute(route, executionOptions)
Expand Down
2 changes: 1 addition & 1 deletion examples/node/examples/polynomialDeposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const getPolynomialQuote = async (
const run = async () => {
console.info('>> Starting Polynomial Demo: Deposit sETH on Optimism')
// configure the chain token and amount to be used
const fromChain = ChainId.ETH
const fromChain = ChainId.ETH // TODO: consider changing this to optimism?
const fromToken = AddressZero
const amount = parseEther('0.04').toString()

Expand Down
5 changes: 1 addition & 4 deletions examples/node/examples/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ import 'dotenv/config'

const dataTypes = (lifiDataTypes as any).default

// NOTE: we add the wallet address to the route request.
// This means that any route responses will feature that address for
// use in route execution.
// In the example below we are exchanging USDC and USDT tokens on Optimism
const getRequestRoute = ({ address }: PrivateKeyAccount) => ({
toAddress: address,
Expand Down Expand Up @@ -82,7 +79,7 @@ async function run() {
return step.execution
}
}, undefined)
console.log(lastExecution)
console.info(lastExecution)
},
}
await executeRoute(route, executionOptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
parseAbi,
parseEther,
encodeFunctionData,
Chain,
} from 'viem'
import { optimism } from 'viem/chains'
import type { Address } from 'viem'
Expand All @@ -28,7 +29,7 @@ const run = async () => {

const walletClient = createWalletClient({
account,
chain: optimism,
chain: optimism as Chain,
transport: http(),
}).extend(publicActions)

Expand Down

0 comments on commit fb9dc89

Please sign in to comment.