Skip to content

Commit

Permalink
fix: msgSubmitProposalPerpetualMarketLaunch minPriceTickSize EIP712
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Feb 3, 2025
1 parent 20b66d9 commit bf83d93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/sdk-ts/src/core/modules/authz/msgs/MsgGrant.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { MsgBase } from '../../MsgBase.js'
import snakecaseKeys from 'snakecase-keys'
import {
GoogleProtobufAny,
CosmosAuthzV1Beta1Tx,
CosmosAuthzV1Beta1Authz,
GoogleProtobufTimestamp,
} from '@injectivelabs/core-proto-ts'
import snakecaseKeys from 'snakecase-keys'
import { GeneralException } from '@injectivelabs/exceptions'
import { MsgBase } from '../../MsgBase.js'
import { getGenericAuthorizationFromMessageType } from '../utils.js'
import { GrantAuthorizationType } from './../types.js'

Expand Down Expand Up @@ -173,7 +173,9 @@ export default class MsgGrant extends MsgBase<MsgGrant.Params, MsgGrant.Proto> {
'@type': '/cosmos.authz.v1beta1.GenericAuthorization',
msg: genericAuthorization.msg,
},
expiration: new Date(Number(timestamp.seconds) * 1000),
expiration: new Date(Number(timestamp.seconds) * 1000)
.toISOString()
.replace('000Z', 'Z'),
},
}

Expand All @@ -183,7 +185,7 @@ export default class MsgGrant extends MsgBase<MsgGrant.Params, MsgGrant.Proto> {
}
}

private getTimestamp() {
public getTimestamp() {
const { params } = this

if (params.expiration) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ export default class MsgSubmitProposalPerpetualMarketLaunch extends MsgBase<
takerFeeRate: amountToCosmosSdkDecAmount(
params.market.takerFeeRate,
).toFixed(),
minPriceTickSize: amountToCosmosSdkDecAmount(
params.market.minPriceTickSize,
).toFixed(),
minQuantityTickSize: amountToCosmosSdkDecAmount(
params.market.minQuantityTickSize,
).toFixed(),
Expand Down

0 comments on commit bf83d93

Please sign in to comment.