contracts/ens: wip integration

This commit is contained in:
Elad 2019-03-07 13:19:13 +07:00
parent 1032f140e9
commit 36822f805e

View file

@ -151,6 +151,7 @@ func TestCIDSanity(t *testing.T) {
if decoded.Length != 32 { if decoded.Length != 32 {
t.Fatal("wrong length") t.Fatal("wrong length")
} }
fmt.Println(cc.StringOfBase(multibase.Base16))
bbbb, e := cc.StringOfBase(multibase.Base16) bbbb, e := cc.StringOfBase(multibase.Base16)
if e != nil { if e != nil {
@ -159,9 +160,8 @@ func TestCIDSanity(t *testing.T) {
fmt.Println(bbbb) fmt.Println(bbbb)
//create the CID string artificially //create the CID string artificially
hashStr = "f01551b20" + hashStr hashStr = "f01551b20" + hashStr
fmt.Println(cc.Hash())
c, err := cid.Decode(hashStr) //"zdvgqEMYmNeH5fKciougvQcfzMcNjF3Z1tPouJ8C7pc3pe63k") c, err := cid.Decode(hashStr)
if err != nil { if err != nil {
t.Fatalf("Error decoding CID: %v", err) t.Fatalf("Error decoding CID: %v", err)
} }