Skip to content

Commit

Permalink
Merge pull request #366 from neutron-org/feat/respect-gogoproto-nullable
Browse files Browse the repository at this point in the history
Feat: respect gogoproto nullable
  • Loading branch information
pr0n00gler authored Nov 18, 2024
2 parents 4f248c5 + 0096297 commit 53ff6d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/testcases/parallel/grpc_queries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ describe('Neutron / Grpc Queries', () => {
const res = await neutronClient.queryContractSmart(contractAddress, {
tokenfactory_params: {},
});
expect(res.params.denom_creation_gas_consume).toBe('0');
expect(res.params.denom_creation_gas_consume).toBe(null);
});

test('tokenfactory denom authority metadata should work', async () => {
Expand Down
15 changes: 1 addition & 14 deletions src/testcases/run_in_band/dex_grpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1220000000000000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.GoodTilCanceled,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand Down Expand Up @@ -170,7 +169,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '998000000000000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.ImmediateOrCancel,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand All @@ -186,7 +184,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1220000000000000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.JustInTime,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand All @@ -204,7 +201,6 @@ describe('Neutron / dex module (grpc contract)', () => {
Math.ceil(Date.now() / 1000) + 1000,
),
order_type: LimitOrderType.GoodTilTime,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand All @@ -221,7 +217,6 @@ describe('Neutron / dex module (grpc contract)', () => {
amount_in: '10000000',
expiration_time: secondsToRFC3339(1),
order_type: LimitOrderType.GoodTilTime,
max_amount_out: '',
},
}),
).rejects.toThrowError(
Expand All @@ -240,7 +235,6 @@ describe('Neutron / dex module (grpc contract)', () => {
amount_in: '10',
expiration_time: secondsToRFC3339(1),
order_type: 10,
max_amount_out: '',
},
}),
).rejects.toThrowError(
Expand All @@ -259,7 +253,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '818812575700000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.GoodTilCanceled,
max_amount_out: '',
},
});
expect(res1.code).toEqual(0);
Expand All @@ -278,7 +271,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1100000000000000000000000000',
amount_in: '1000',
order_type: LimitOrderType.ImmediateOrCancel,
max_amount_out: '',
},
});
expect(res2.code).toEqual(0);
Expand Down Expand Up @@ -453,7 +445,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '818812575700000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.GoodTilCanceled,
max_amount_out: '',
},
});
activeTrancheKey = getEventAttributesFromTx(
Expand All @@ -472,7 +463,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1000000000000000000000000000',
amount_in: '1000',
order_type: LimitOrderType.ImmediateOrCancel,
max_amount_out: '',
},
});

Expand All @@ -486,7 +476,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '7381675653600000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.JustInTime,
max_amount_out: '',
},
});
inactiveTrancheKey = getEventAttributesFromTx(
Expand Down Expand Up @@ -578,7 +567,7 @@ describe('Neutron / dex module (grpc contract)', () => {
},
},
);
expect(respNoPoolData.deposits[0].total_shares).toEqual('');
expect(respNoPoolData.deposits[0].total_shares).toBeNull();
expect(respNoPoolData.deposits[0].pool).toBeNull();
});
test('AllTickLiquidity', async () => {
Expand Down Expand Up @@ -739,8 +728,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1200000000000000000000000000',
amount_in: '10000',
order_type: LimitOrderType.FillOrKill.toString(),
max_amount_out: '',
min_average_sell_price: '',
},
},
});
Expand Down

0 comments on commit 53ff6d2

Please sign in to comment.