go-ethereum/XDCx/tradingstate/encoding.go
olumuyiwadad b5abbfed79 new EVM Upgrade
- Solidity Upgraded up to v0.8.0
-  Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30

14 lines
262 B
Go

package tradingstate
import (
"github.com/XinFinOrg/XDPoSChain/rlp"
)
func EncodeBytesItem(val interface{}) ([]byte, error) {
return rlp.EncodeToBytes(val)
}
func DecodeBytesItem(bytes []byte, val interface{}) error {
return rlp.DecodeBytes(bytes, val)
}