Skip to content

Commit

Permalink
fix(tests): access patternScanResult through scanResult
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Sep 21, 2022
1 parent d802ef8 commit 76676fb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -58,7 +58,7 @@ class ExampleBytecodePatch : BytecodePatch(listOf(ExampleFingerprint)) {
// Let's modify it, so it prints "Hello, ReVanced! Editing bytecode."
// Get the start index of our opcode pattern.
// This will be the index of the instruction with the opcode CONST_STRING.
val startIndex = result.patternScanResult!!.startIndex
val startIndex = result.scanResult.patternScanResult!!.startIndex

implementation.replaceStringAt(startIndex, "Hello, ReVanced! Editing bytecode.")

Expand Down

0 comments on commit 76676fb

Please sign in to comment.