refactor: remove magic number
This commit is contained in:
parent
65efea67dc
commit
4b2305434e
|
@ -40,7 +40,7 @@ export class SystemProgram {
|
|||
|
||||
const programIdBytes = programId.toBuffer();
|
||||
programIdBytes.copy(userdata, pos);
|
||||
pos += 32;
|
||||
pos += programIdBytes.length;
|
||||
|
||||
assert(pos <= userdata.length);
|
||||
|
||||
|
|
Loading…
Reference in New Issue