mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +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) {
|
||||
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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue