From 76676fb5673a9e92517ee3a13943cdc98dd5102a Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 21 Sep 2022 03:42:29 +0200 Subject: [PATCH] fix(tests): access `patternScanResult` through `scanResult` --- .../app/revanced/patcher/usage/bytecode/ExampleBytecodePatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleBytecodePatch.kt b/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleBytecodePatch.kt index 587e3c3..2066cac 100644 --- a/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleBytecodePatch.kt +++ b/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleBytecodePatch.kt @@ -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.")