Skip to content

Commit

Permalink
fix(OP_REVERSEBYTES): clone stack item before reversing
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed Aug 8, 2020
1 parent 21f8f47 commit 071f9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/vm/instruction-sets/bch/bch-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const opReverseBytes = <
State extends AuthenticationProgramStateStack
>() => (state: State) =>
useOneStackItem(state, (nextState, [item]) =>
pushToStack(nextState, item.reverse())
pushToStack(nextState, item.slice().reverse())
);

export const bitcoinCashOperations = <
Expand Down

0 comments on commit 071f9cd

Please sign in to comment.