Commit de181eac authored by Mark Tyneway's avatar Mark Tyneway

op-chain-ops: add in json struct tags to cdm

Adds json struct tags to the `CrossDomainMessage` type.
This is useful for reading and writing this type to
a file. The `Data` field must be updated to a `hexutil.Bytes`
in a subsequent PR.
parent e65a7bb0
......@@ -14,12 +14,12 @@ import (
// version 1 messages have a value and the most significant
// byte of the nonce is a 1
type CrossDomainMessage struct {
Nonce *big.Int
Sender *common.Address
Target *common.Address
Value *big.Int
GasLimit *big.Int
Data []byte
Nonce *big.Int `json:"nonce"`
Sender *common.Address `json:"sender"`
Target *common.Address `json:"target"`
Value *big.Int `json:"value"`
GasLimit *big.Int `json:"gasLimit"`
Data []byte `json:"data"`
}
// NewCrossDomainMessage creates a CrossDomainMessage.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment