Skip to content

Commit

Permalink
Update Utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed Sep 20, 2023
1 parent 2a17ca2 commit a6ee30b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/libraries/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const getGenesis = (validators) => {
util.zeros(32),
util.zeros(32),
new Uint8Array(256),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBytes(0),
util.bigIntToUnpaddedBytes(0),
util.bigIntToUnpaddedBytes(0),
util.bigIntToUnpaddedBytes(0),
util.bigIntToUnpaddedBytes(0),
new Uint8Array([
...version,
...RLP.encode([
Expand Down Expand Up @@ -150,18 +150,18 @@ const composeAndSignBlock = (

var blockBuffer = Buffer.from(
RLP.encode([
util.toBuffer(parent_hash),
util.toBytes(parent_hash),
util.zeros(32),
util.zeros(32),
util.zeros(32),
util.zeros(32),
util.zeros(32),
new Uint8Array(256),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBuffer(number),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBuffer(0),
util.bigIntToUnpaddedBytes(0),
util.bigIntToUnpaddedBytes(number),
util.bigIntToUnpaddedBytes(0),
util.bigIntToUnpaddedBytes(0),
util.bigIntToUnpaddedBytes(0),
new Uint8Array([
...version,
...RLP.encode([round_num, [[parent_hash, prn, number - 1], sigs, 0]]),
Expand Down

0 comments on commit a6ee30b

Please sign in to comment.