blob: 7c093e68f09d977f577538d0778d0a664c1359ed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package tools
import (
"fmt"
)
func ExamplePatchPUSH1() {
input := "606060405260068060106000396000f3606060405200"
// 07 ^00
fmt.Println(Patch(input))
// Output:
// 00606060405260078060106000396000f300606060405200
}
func ExamplePatchPUSH2() {
input := "6060604052aabb616fff8606060405200"
// 7000 ^00
fmt.Println(Patch(input))
// Output:
// 006060604052aabb616fff800606060405200
}
func ExamplePatchDelegate() {
input := "6504032353da71506060604052"
fmt.Println(Patch(input))
// Output:
// 006504032353da71506060604052
}
|