Added Validation / convenience methods to the MsgUpdateCSR data structure in x/csr/types/msg.go
also changed the message data structures to add a ContractData wrapper around the []*UintArray and []string objects found in both MsgUpdateCSR and MsgRegisterCSR
tx.proto
Requisite changes for wrapper ContractData
Tests
Added tests for msg_test.go for MsgRegisterCSR.ValidateBasic(), MsgUpdateCSR.ValidateBasic(), and MsgRegisterCSR.CheckContracts() and MsgUpdateCSR.CheckNonces()
To run,
go test -v -race ./
Additions
msg.go
Added Validation / convenience methods to the
MsgUpdateCSR
data structure inx/csr/types/msg.go
also changed the message data structures to add aContractData
wrapper around the[]*UintArray
and[]string
objects found in both MsgUpdateCSR and MsgRegisterCSRtx.proto
Requisite changes for wrapper
ContractData
Tests
Added tests for msg_test.go for
MsgRegisterCSR.ValidateBasic()
,MsgUpdateCSR.ValidateBasic()
, andMsgRegisterCSR.CheckContracts()
andMsgUpdateCSR.CheckNonces()
To run,go test -v -race ./