Skip to content

Commit fffccf8

Browse files
authored
Merge pull request #6400 from BitGo/coin-4502
fix(sdk-coin-vet): correct signable payload for vechain transaction
2 parents 6dd444d + 9152ce6 commit fffccf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/sdk-coin-vet/src/lib/transaction/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export class Transaction extends BaseTransaction {
449449
}
450450

451451
public get signablePayload(): Buffer {
452-
return Buffer.from(this.rawTransaction.getTransactionHash().bytes);
452+
return Buffer.from(this.rawTransaction.encoded);
453453
}
454454

455455
/** @inheritdoc */

modules/sdk-coin-vet/test/transactionBuilder/transferBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('Vet Transfer Transaction', () => {
9090
const signablePayload = tx.signablePayload;
9191
should.equal(
9292
signablePayload.toString('hex'),
93-
'90c5cd3e79059f65b32088c7d807b4c989c5c3051d5392827ec817ce2037c947'
93+
'f72788014ead140e77bbc140e0df94e59f1cea4e0fef511e3d0f4eec44adf19c4cbeec88016345785d8a00008081808252088082faf8c101'
9494
);
9595
});
9696

0 commit comments

Comments
 (0)