Skip to content

Commit 7e1af36

Browse files
authored
Fix loading generic programs. (#430)
1 parent 7a738f9 commit 7e1af36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ProgramLoader/ProgramFileUpload.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ function loadFileFromUint8Array(
144144
// Finally try to load program as a Generic
145145
let program = null;
146146
try {
147-
program = new pvm.ProgramDecoder(uint8Array);
147+
program = new pvm.ProgramDecoder(rawBytes);
148148
} catch (e) {
149149
console.warn("not a generic PVM", e);
150150
}
151151

152152
if (program !== null) {
153153
onFileUpload({
154-
program: Array.from(uint8Array),
154+
program: Array.from(rawBytes),
155155
name: `${loadedFileName} [generic]`,
156156
isSpi: false,
157157
kind: "Generic PVM",

0 commit comments

Comments
 (0)