fix: rename signData to serializeMessage()

This commit is contained in:
Trent Nelson
2020-04-24 10:20:27 -06:00
committed by Michael Vines
parent 403448a91f
commit 7e642d5456
4 changed files with 8 additions and 8 deletions

View File

@ -453,7 +453,7 @@ test('get sign data for transaction', () => {
lamports: 42,
});
tx.recentBlockhash = bs58.encode(recentBlockhash);
const tx_bytes = tx.signData;
const tx_bytes = tx.serializeMessage();
const signature = nacl.sign.detached(tx_bytes, from.secretKey);
tx.addSignature(from.publicKey, signature);
expect(tx.verifySignatures()).toBe(true);