Open cubismic opened 4 years ago
Currently, some of the Transaction-related objects have two forms, which implement normal type and for marshaling.
https://github.com/CodeChain-io/codechain-sdk-go/blob/6ad3e76c4dfba22b0867764b8c67500dce7518d2/core/transaction/signedTransaction.go#L11-L17 https://github.com/CodeChain-io/codechain-sdk-go/blob/6ad3e76c4dfba22b0867764b8c67500dce7518d2/core/transaction/signedTransaction.go#L19-L25
This implementation is from codechain-sdk-js. But since golang can implement custom marshaling function (link1) (link2), I think duplication of the objects is unnecessary.
This is related to https://github.com/CodeChain-io/codechain-sdk-go/issues/53
Currently, some of the Transaction-related objects have two forms, which implement normal type and for marshaling.
https://github.com/CodeChain-io/codechain-sdk-go/blob/6ad3e76c4dfba22b0867764b8c67500dce7518d2/core/transaction/signedTransaction.go#L11-L17 https://github.com/CodeChain-io/codechain-sdk-go/blob/6ad3e76c4dfba22b0867764b8c67500dce7518d2/core/transaction/signedTransaction.go#L19-L25
This implementation is from codechain-sdk-js. But since golang can implement custom marshaling function (link1) (link2), I think duplication of the objects is unnecessary.