From cd002ffa11c05832ab248f68e8e78171cf4b48a9 Mon Sep 17 00:00:00 2001 From: zelig Date: Tue, 2 Jun 2015 23:49:53 +0100 Subject: [PATCH] fix solidity TestSaveInfo --- common/compiler/solidity_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/compiler/solidity_test.go b/common/compiler/solidity_test.go index 7864283c65..608617bc11 100644 --- a/common/compiler/solidity_test.go +++ b/common/compiler/solidity_test.go @@ -73,14 +73,14 @@ func TestNoCompiler(t *testing.T) { } func TestSaveInfo(t *testing.T) { - var cinfo *ContractInfo - err := json.Unmarshal([]byte(info), cinfo) + var cinfo ContractInfo + err := json.Unmarshal([]byte(info), &cinfo) if err != nil { t.Errorf("%v", err) } filename := "/tmp/solctest.info.json" os.Remove(filename) - cinfohash, err := SaveInfo(cinfo, filename) + cinfohash, err := SaveInfo(&cinfo, filename) if err != nil { t.Errorf("error extracting info: %v", err) }