Skip to content

Commit

Permalink
feat: 🎸 update sdk to v24.5.0
Browse files Browse the repository at this point in the history
update sdk dependency to avoid warnings when connecting to a 6.3 chain
  • Loading branch information
polymath-eric committed May 28, 2024
1 parent 85e1922 commit d17eb12
Show file tree
Hide file tree
Showing 6 changed files with 447 additions and 433 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"@nestjs/schedule": "^4.0.2",
"@nestjs/swagger": "^7.3.1",
"@nestjs/typeorm": "^10.0.2",
"@polymeshassociation/fireblocks-signing-manager": "^2.4.0",
"@polymeshassociation/hashicorp-vault-signing-manager": "^3.2.0",
"@polymeshassociation/local-signing-manager": "^3.2.0",
"@polymeshassociation/polymesh-sdk": "24.1.0",
"@polymeshassociation/fireblocks-signing-manager": "^2.5.0",
"@polymeshassociation/hashicorp-vault-signing-manager": "^3.4.0",
"@polymeshassociation/local-signing-manager": "^3.3.0",
"@polymeshassociation/polymesh-sdk": "24.5.0",
"@polymeshassociation/signing-manager-types": "^3.2.0",
"class-transformer": "0.5.1",
"class-validator": "^0.14.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`LocalOfflineTxRepo OfflineEvent test suite method: createTx should reco
"payload": {
"address": "address",
"blockHash": "0x01",
"blockNumber": "-1",
"blockNumber": "0x01",
"era": "0x01",
"genesisHash": "0x01",
"method": "testMethod",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ OfflineTxModel {
"payload": {
"address": "address",
"blockHash": "0x01",
"blockNumber": "-1",
"blockNumber": "0x01",
"era": "0x01",
"genesisHash": "0x01",
"method": "testMethod",
Expand Down
2 changes: 1 addition & 1 deletion src/test-utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const offlineTx = new OfflineTxModel({
payload: {
address: 'address',
blockHash: '0x01',
blockNumber: '-1',
blockNumber: '0x01',
genesisHash: '0x01',
era: '0x01',
method: 'testMethod',
Expand Down
14 changes: 7 additions & 7 deletions src/transactions/dto/payload.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ export class PayloadDto {
example: '0x005b8d84',
})
@IsHexadecimal()
readonly specVersion: string;
readonly specVersion: `0x${string}`;

@ApiProperty({
type: 'string',
description: 'The transaction version',
example: '0x00000004',
})
@IsHexadecimal()
readonly transactionVersion: string;
readonly transactionVersion: `0x${string}`;

@ApiProperty({
type: 'string',
Expand All @@ -36,7 +36,7 @@ export class PayloadDto {
})
@IsHexadecimal()
@Length(66)
readonly blockHash: string;
readonly blockHash: `0x${string}`;

@ApiProperty({
type: 'string',
Expand All @@ -45,15 +45,15 @@ export class PayloadDto {
example: '0x00000000',
})
@IsHexadecimal()
readonly blockNumber: string;
readonly blockNumber: `0x${string}`;

@ApiProperty({
type: 'string',
description: 'How long this transaction is valid for',
example: '0xc501',
})
@IsHexadecimal()
readonly era: string;
readonly era: `0x${string}`;

@ApiProperty({
type: 'string',
Expand All @@ -62,7 +62,7 @@ export class PayloadDto {
})
@IsHexadecimal()
@Length(66)
readonly genesisHash: string;
readonly genesisHash: `0x${string}`;

@ApiProperty({
type: 'string',
Expand All @@ -78,7 +78,7 @@ export class PayloadDto {
example: '0x00000007',
})
@IsHexadecimal()
readonly nonce: string;
readonly nonce: `0x${string}`;

@ApiProperty({
type: 'string',
Expand Down
Loading

0 comments on commit d17eb12

Please sign in to comment.