We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a738f9 commit 7e1af36Copy full SHA for 7e1af36
src/components/ProgramLoader/ProgramFileUpload.tsx
@@ -144,14 +144,14 @@ function loadFileFromUint8Array(
144
// Finally try to load program as a Generic
145
let program = null;
146
try {
147
- program = new pvm.ProgramDecoder(uint8Array);
+ program = new pvm.ProgramDecoder(rawBytes);
148
} catch (e) {
149
console.warn("not a generic PVM", e);
150
}
151
152
if (program !== null) {
153
onFileUpload({
154
- program: Array.from(uint8Array),
+ program: Array.from(rawBytes),
155
name: `${loadedFileName} [generic]`,
156
isSpi: false,
157
kind: "Generic PVM",
0 commit comments