Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended transaction by adding v, r, s fields #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ type T struct {
Value *big.Int
Data string
Nonce int

V string
R string
S string
}

// MarshalJSON implements the json.Unmarshaler interface.
Expand Down Expand Up @@ -79,6 +83,10 @@ type Transaction struct {
Gas int
GasPrice big.Int
Input string

V string
R string
S string
}

// UnmarshalJSON implements the json.Unmarshaler interface.
Expand Down Expand Up @@ -194,6 +202,10 @@ type proxyTransaction struct {
Gas hexInt `json:"gas"`
GasPrice hexBig `json:"gasPrice"`
Input string `json:"input"`

V string `json:"v"`
R string `json:"r"`
S string `json:"s"`
}

type proxyLog struct {
Expand Down