Skip to content

Commit

Permalink
Fix peaq evm
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenigs committed Jul 15, 2024
1 parent 3999e0c commit 5b9a286
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,7 @@ export const peaqEvmAlphanet = new EvmParachain({
address: '0xFfFfFffF000000000000000000000000000003e8',
decimals: 18,
ids: {
id: '0xFfFfFffF000000000000000000000000000003e8',
minId: 1000,
},
}),
Expand Down Expand Up @@ -1654,41 +1655,47 @@ export const peaqEvm = new EvmParachain({
address: '0xFfFfFffF000000000000000000000000000003e8',
decimals: 18,
ids: {
id: '0xFfFfFffF000000000000000000000000000003e8',
minId: 1000,
},
}),
ChainAsset.fromAsset(usdcwh, {
address: '0xFffFffFF000000000000000000000000000003E9',
decimals: 6,
ids: {
id: '0xFffFffFF000000000000000000000000000003E9',
minId: 1001,
},
}),
ChainAsset.fromAsset(weth, {
address: '0xFFFfFfFf000000000000000000000000000003ea',
decimals: 18,
ids: {
id: '0xFFFfFfFf000000000000000000000000000003ea',
minId: 1002,
},
}),
ChainAsset.fromAsset(wbtc, {
address: '0xfffFFFFF000000000000000000000000000003eb',
decimals: 8,
ids: {
id: '0xfffFFFFF000000000000000000000000000003eb',
minId: 1003,
},
}),
ChainAsset.fromAsset(dai, {
address: '0xfFffFFFF000000000000000000000000000003Ec',
decimals: 18,
ids: {
id: '0xfFffFFFF000000000000000000000000000003Ec',
minId: 1004,
},
}),
ChainAsset.fromAsset(usdtwh, {
address: '0xfFffffFF000000000000000000000000000003Ed',
decimals: 6,
ids: {
id: '0xfFffffFF000000000000000000000000000003Ed',
minId: 1005,
},
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/getTransferData/getSourceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function getSourceData({
asset: asset.address || asset.getAssetId(),
destination: destination.chain,
fee: destinationFee.amount,
feeAsset: feeAsset.address || feeAsset.getAssetId(),
feeAsset: destinationFee.address || destinationFee.getAssetId(),
});

const fee = await getFee({
Expand Down

0 comments on commit 5b9a286

Please sign in to comment.