Skip to content

Commit

Permalink
fix snaps and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Nov 25, 2024
1 parent dcc64c5 commit 408cb16
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
11 changes: 4 additions & 7 deletions packages/builder/src/asset-min/AssetMinBuilder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ describe('assetMinBuilder', () => {

describe('foreignAssets', () => {
describe('asset', () => {
const config = AssetMinBuilder()
.foreignAssets()
.asset()
.build({
asset,
address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
});
const config = AssetMinBuilder().foreignAssets().asset().build({
asset,
address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
});

it('should be correct config', () => {
expect(config).toMatchSnapshot();
Expand Down
39 changes: 27 additions & 12 deletions packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -515,28 +515,43 @@ exports[`sdk > getParachainBalances > on 'Moonbase Beta' for address: '0x4E82143
exports[`sdk > getParachainBalances > on 'Moonbeam' for address: '0x4E82143Af671Cc8201Bc7efCBbCED3A69e8…' > should get expected balances 1`] = `
[
_AssetAmount {
"address": "0xCa01a1D0993565291051daFF390892518ACfAD3A",
"address": "0xffffffff5d5deb44bf7278dee5381beb24cb6573",
"amount": 0n,
"decimals": 18,
"ids": {
"id": "124105859028862849477017063633156007283",
},
"key": "wstethe",
"min": undefined,
"originSymbol": "wstETH.e",
"symbol": "wstETH.e",
},
r {
"amount": 0n,
"decimals": 8,
"key": "wbtce",
"originSymbol": "WBTC.e",
"symbol": "WBTC.e",
"symbol": undefined,
},
r {
_AssetAmount {
"address": "0xffffffff86829afe1521ad2296719df3ace8ded7",
"amount": 0n,
"decimals": 18,
"ids": {
"id": "178794693648360392906933130845919698647",
},
"key": "wethe",
"min": undefined,
"originSymbol": "WETH.e",
"symbol": "WETH.e",
"symbol": undefined,
},
r {
_AssetAmount {
"address": "0xffffffff1b4bb1ac5749f73d866ffc91a3432c47",
"amount": 0n,
"decimals": 8,
"ids": {
"id": "36282181791341254438422467838694599751",
},
"key": "wbtce",
"min": undefined,
"originSymbol": "WBTC.e",
"symbol": undefined,
},
_AssetAmount {
"address": "0xCa01a1D0993565291051daFF390892518ACfAD3A",
"amount": 0n,
"decimals": 6,
"ids": undefined,
Expand Down

0 comments on commit 408cb16

Please sign in to comment.