mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
contracts/ens: wip integration
This commit is contained in:
parent
1032f140e9
commit
36822f805e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue