Skip to content

Commit

Permalink
chore: proper eip712 for cancel unbonding creationHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-moore committed Nov 24, 2023
1 parent a5000e5 commit bd61b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('MsgCancelUnbondingDelegation', () => {
{ name: 'delegator_address', type: 'string' },
{ name: 'validator_address', type: 'string' },
{ name: 'amount', type: 'TypeAmount' },
{ name: 'creation_height', type: 'string' },
{ name: 'creation_height', type: 'int64' },
],
})
})
Expand Down
3 changes: 3 additions & 0 deletions packages/sdk-ts/src/core/modules/tx/eip712/maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const objectKeysToEip712Types = ({
'expiry',
'option',
'proposal_id',
'creation_height',
]
const output = new Map<string, TypedDataField[]>()
const types = new Array<TypedDataField>()
Expand Down Expand Up @@ -161,6 +162,8 @@ export const numberTypeToReflectionNumberType = (property?: string) => {
return 'uint64'
case 'expiry':
return 'int64'
case 'creation_height':
return 'int64'
case 'option':
return 'int32'
case 'proposal_id':
Expand Down

0 comments on commit bd61b55

Please sign in to comment.