From e926c04347fc50cd4c89b89f4e4cb990fc357828 Mon Sep 17 00:00:00 2001 From: whitehat <34144820+whitehat@users.noreply.github.com> Date: Thu, 22 Nov 2018 16:00:19 -0600 Subject: [PATCH] fix: 64 length vendorfield not 63 --- lib/arkecosystem/crypto/transactions/transaction.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arkecosystem/crypto/transactions/transaction.rb b/lib/arkecosystem/crypto/transactions/transaction.rb index 0fd4096..9945f8c 100644 --- a/lib/arkecosystem/crypto/transactions/transaction.rb +++ b/lib/arkecosystem/crypto/transactions/transaction.rb @@ -58,7 +58,7 @@ def to_bytes(skip_signature = true, skip_second_signature = true) if @vendor_field bytes << @vendor_field - if @vendor_field.size < 64 + if @vendor_field.size < 65 bytes << [].pack("x#{64 - @vendor_field.size}") end else