Skip to content

Commit cc10a8a

Browse files
committed
update
1 parent bb924c1 commit cc10a8a

File tree

7 files changed

+38
-13
lines changed

7 files changed

+38
-13
lines changed

go-ethereum/core/types/gen_log_json.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go-ethereum/core/types/tx_access_list.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ type AccessListTx struct {
5454
Value *big.Int // wei amount
5555
Data []byte // contract invocation input data
5656
AccessList AccessList // EIP-2930 access list
57-
V, R, S *big.Int // signature values
57+
58+
// !!ADDED BY ETHKIT!! modified to include json tags
59+
V *big.Int `json:"v" gencodec:"required"`
60+
R *big.Int `json:"r" gencodec:"required"`
61+
S *big.Int `json:"s" gencodec:"required"`
62+
// V, R, S *big.Int // signature values
5863
}
5964

6065
// copy creates a deep copy of the transaction data and initializes all fields.

go-ethereum/core/types/tx_blob.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ type BlobTx struct {
4848
Sidecar *BlobTxSidecar `rlp:"-"`
4949

5050
// Signature values
51-
V *uint256.Int
52-
R *uint256.Int
53-
S *uint256.Int
51+
// !!ADDED BY ETHKIT!! modified to include json tags
52+
V *uint256.Int `json:"v" gencodec:"required"`
53+
R *uint256.Int `json:"r" gencodec:"required"`
54+
S *uint256.Int `json:"s" gencodec:"required"`
55+
// V *uint256.Int
56+
// R *uint256.Int
57+
// S *uint256.Int
5458
}
5559

5660
// BlobTxSidecar contains the blobs of a blob transaction.

go-ethereum/core/types/tx_dynamic_fee.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ type DynamicFeeTx struct {
3737
AccessList AccessList
3838

3939
// Signature values
40-
V *big.Int
41-
R *big.Int
42-
S *big.Int
40+
// !!ADDED BY ETHKIT!! modified to include json tags
41+
V *big.Int `json:"v" gencodec:"required"`
42+
R *big.Int `json:"r" gencodec:"required"`
43+
S *big.Int `json:"s" gencodec:"required"`
44+
// V *big.Int
45+
// R *big.Int
46+
// S *big.Int
4347
}
4448

4549
// copy creates a deep copy of the transaction data and initializes all fields.

go-ethereum/core/types/tx_legacy.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ type LegacyTx struct {
3131
To *common.Address `rlp:"nil"` // nil means contract creation
3232
Value *big.Int // wei amount
3333
Data []byte // contract invocation input data
34-
V, R, S *big.Int // signature values
34+
35+
// !!ADDED BY ETHKIT!! modified to include json tags
36+
V *big.Int `json:"v" gencodec:"required"`
37+
R *big.Int `json:"r" gencodec:"required"`
38+
S *big.Int `json:"s" gencodec:"required"`
39+
// V, R, S *big.Int // signature values
3540
}
3641

3742
// NewTransaction creates an unsigned legacy transaction.

go-ethereum/core/types/tx_setcode.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ type SetCodeTx struct {
6161
AuthList []SetCodeAuthorization
6262

6363
// Signature values
64-
V *uint256.Int
65-
R *uint256.Int
66-
S *uint256.Int
64+
// !!ADDED BY ETHKIT!! modified to include json tags
65+
V *uint256.Int `json:"v" gencodec:"required"`
66+
R *uint256.Int `json:"r" gencodec:"required"`
67+
S *uint256.Int `json:"s" gencodec:"required"`
68+
// V *uint256.Int
69+
// R *uint256.Int
70+
// S *uint256.Int
6771
}
6872

6973
//go:generate go run github.com/fjl/gencodec -type SetCodeAuthorization -field-override authorizationMarshaling -out gen_authorization.go

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/0xsequence/ethkit
22

3-
go 1.23.4
3+
go 1.23.0
44

55
toolchain go1.24.3
66

0 commit comments

Comments
 (0)