fix: Remove fs dep, bpf_loader now takes ELF as bytes

This commit is contained in:
Jack May
2018-10-25 10:41:18 -07:00
committed by Michael Vines
parent 224d929d4d
commit f871b0410a
4 changed files with 3175 additions and 3175 deletions

View File

@ -51,7 +51,7 @@ export class Loader {
const transactions = [];
while (array.length > 0) {
const bytes = array.slice(0, chunkSize);
let userdata = Buffer.alloc(chunkSize + 16);
const userdata = Buffer.alloc(chunkSize + 16);
userdataLayout.encode(
{
instruction: 0, // Load instruction