mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
fix solidity TestSaveInfo
This commit is contained in:
parent
cb06ebdffd
commit
cd002ffa11
1 changed files with 3 additions and 3 deletions
|
|
@ -73,14 +73,14 @@ func TestNoCompiler(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSaveInfo(t *testing.T) {
|
func TestSaveInfo(t *testing.T) {
|
||||||
var cinfo *ContractInfo
|
var cinfo ContractInfo
|
||||||
err := json.Unmarshal([]byte(info), cinfo)
|
err := json.Unmarshal([]byte(info), &cinfo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("%v", err)
|
t.Errorf("%v", err)
|
||||||
}
|
}
|
||||||
filename := "/tmp/solctest.info.json"
|
filename := "/tmp/solctest.info.json"
|
||||||
os.Remove(filename)
|
os.Remove(filename)
|
||||||
cinfohash, err := SaveInfo(cinfo, filename)
|
cinfohash, err := SaveInfo(&cinfo, filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("error extracting info: %v", err)
|
t.Errorf("error extracting info: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue