aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/rlp.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-19 19:19:19 +0800
committerobscuren <geffobscura@gmail.com>2014-09-19 19:19:19 +0800
commit80261c803a82e51413608a3dc5273c982844d135 (patch)
tree07bae1473db846065d62ac86b339aaadc9d781c1 /ethutil/rlp.go
parent863785a52046bcfbbcaa57c83b4b43c215368760 (diff)
downloaddexon-80261c803a82e51413608a3dc5273c982844d135.tar
dexon-80261c803a82e51413608a3dc5273c982844d135.tar.gz
dexon-80261c803a82e51413608a3dc5273c982844d135.tar.bz2
dexon-80261c803a82e51413608a3dc5273c982844d135.tar.lz
dexon-80261c803a82e51413608a3dc5273c982844d135.tar.xz
dexon-80261c803a82e51413608a3dc5273c982844d135.tar.zst
dexon-80261c803a82e51413608a3dc5273c982844d135.zip
Fixed deref ptr
Diffstat (limited to 'ethutil/rlp.go')
-rw-r--r--ethutil/rlp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethutil/rlp.go b/ethutil/rlp.go
index febfb78e1..55406133b 100644
--- a/ethutil/rlp.go
+++ b/ethutil/rlp.go
@@ -15,6 +15,10 @@ type RlpEncodeDecode interface {
RlpValue() []interface{}
}
+func Rlp(encoder RlpEncode) []byte {
+ return encoder.RlpEncode()
+}
+
type RlpEncoder struct {
rlpData []byte
}