fix(tests): access patternScanResult through scanResult

This commit is contained in:
oSumAtrIX 2022-09-21 03:42:29 +02:00
parent d802ef844e
commit 76676fb567
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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.")