refactor: employ prettier

This commit is contained in:
Michael Vines
2018-11-04 11:41:21 -08:00
parent 9a043344d5
commit 1d6abb17cf
35 changed files with 1498 additions and 856 deletions

View File

@ -2,7 +2,6 @@
import * as BufferLayout from 'buffer-layout';
/**
* Layout for a public key
*/
@ -17,7 +16,6 @@ export const uint64 = (property: string = 'uint64'): Object => {
return BufferLayout.blob(8, property);
};
/**
* Layout for a Rust String type
*/
@ -26,10 +24,7 @@ export const rustString = (property: string = 'string') => {
[
BufferLayout.u32('length'),
BufferLayout.u32('lengthPadding'),
BufferLayout.blob(
BufferLayout.offset(BufferLayout.u32(), -8),
'chars',
),
BufferLayout.blob(BufferLayout.offset(BufferLayout.u32(), -8), 'chars'),
],
property,
);