Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed Feb 26, 2024
1 parent ea51b6f commit f111a1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AccountId, AssetId, TransactionRequest, getAssetId } from '@narval/policy-engine-shared'
import { AccountId, AssetId, TransactionRequest, getAccountId, getAssetId } from '@narval/policy-engine-shared'
import { Address } from 'viem'
import { DecodeInput, InputType, Intents, TransactionInput } from '../../domain'
import { TransferErc1155, TransferErc20, TransferErc721, TransferNative } from '../../intent.types'
Expand Down Expand Up @@ -247,9 +247,9 @@ const ERC20_TRANSFER_TX_REQUEST: TransactionRequest = {

const ERC20_TRANSFER_INTENT: TransferErc20 = {
type: Intents.TRANSFER_ERC20,
to: `eip155:137/0x031d8c0ca142921c459bcb28104c0ff37928f9ed` as AccountId,
from: `eip155:137/${ERC20_TRANSFER_TX_REQUEST.from.toLowerCase()}` as AccountId,
token: `eip155:137:${ERC20_TRANSFER_TX_REQUEST.to?.toLowerCase()}` as AssetId,
to: getAccountId('eip155:137:0x031d8c0ca142921c459bcb28104c0ff37928f9ed'),
from: getAccountId(`eip155:137:${ERC20_TRANSFER_TX_REQUEST.from.toLowerCase()}`),
token: getAccountId(`eip155:137:${ERC20_TRANSFER_TX_REQUEST.to?.toLowerCase()}`),
amount: '428406414311469998210669'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type TransferErc20 = {
type: Intents.TRANSFER_ERC20
to: AccountId
from: AccountId
token: AssetId
token: AccountId
amount: string
}

Expand Down

0 comments on commit f111a1d

Please sign in to comment.