Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 7b8bd5b

Browse files
committed
lint
1 parent 2e6a177 commit 7b8bd5b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

contracts/hardhat.ccip.zksync.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ let config = {
9090
},
9191
zksolc: {
9292
version: '1.5.3',
93-
settings: {
93+
settings: {
9494
optimizer: {
9595
enabled: true,
9696
mode: '3',

contracts/scripts/zksyncverify/main.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func main() {
7272
if err != nil {
7373
log.Fatalf("Failed to get transaction receipt: %v", err)
7474
}
75-
params = string(tx.Data[2:])
75+
params = tx.Data[2:]
7676
} else {
7777
params = pointer.GetString(encodedConstructorArgs)
7878
}
@@ -132,10 +132,6 @@ func main() {
132132
}
133133

134134
func calculateBytecodeSize(bytecode string) int {
135-
// Remove the "0x" prefix if present
136-
if strings.HasPrefix(bytecode, "0x") {
137-
bytecode = bytecode[2:]
138-
}
139-
// Calculate the size in bytes
135+
bytecode = strings.TrimPrefix(bytecode, "0x")
140136
return len(bytecode) / 2
141137
}

0 commit comments

Comments
 (0)