File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/editor/dialogs/import-script-dialog Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { ActiveDialog } from '../../../state/types';
55import { createInsecureUuidV4 } from '../../../utils' ;
66import { toConventionalId } from '../../common' ;
77
8- import { disassembleBytecodeBCH , hexToBin } from '@bitauth/libauth' ;
8+ import { disassembleBytecodeBch , hexToBin } from '@bitauth/libauth' ;
99import {
1010 Button ,
1111 Classes ,
@@ -16,7 +16,7 @@ import {
1616import { WarningSign } from '@blueprintjs/icons' ;
1717import React , { useState } from 'react' ;
1818
19- const disassembleHex = ( hex : string ) => disassembleBytecodeBCH ( hexToBin ( hex ) ) ;
19+ const disassembleHex = ( hex : string ) => disassembleBytecodeBch ( hexToBin ( hex ) ) ;
2020const tokenizeHex = ( hex : string ) => {
2121 const splitAtErrors = disassembleHex ( hex ) . split ( '[' ) ;
2222 return [
@@ -151,7 +151,10 @@ export const ImportScriptDialog = ({
151151 id : scriptId ,
152152 internalId : createInsecureUuidV4 ( ) ,
153153 type : 'isolated' ,
154- contents : disassembleHex ( bytecode ) . split ( '[' ) [ 0 ] ,
154+ contents : disassembleHex ( bytecode )
155+ . split ( '[' ) [ 0 ] !
156+ . split ( ' ' )
157+ . join ( '\n' ) ,
155158 } ) ;
156159 closeDialog ( ) ;
157160 }
You can’t perform that action at this time.
0 commit comments