mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
13 lines
261 B
Go
13 lines
261 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)
|
|
}
|