refactor: remove magic number

This commit is contained in:
Michael Vines 2018-09-30 21:10:12 -07:00
parent 65efea67dc
commit 4b2305434e
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export class SystemProgram {
const programIdBytes = programId.toBuffer();
programIdBytes.copy(userdata, pos);
pos += 32;
pos += programIdBytes.length;
assert(pos <= userdata.length);