fix: minor issues and adding method to retrieve the stickermarket contract address
This commit is contained in:
parent
c59335aa86
commit
5552f4e4c2
|
@ -131,7 +131,7 @@ func TestResourceURL(t *testing.T) {
|
||||||
uri, err := api.ResourceURL(context.Background(), 1, "simpledapp.eth")
|
uri, err := api.ResourceURL(context.Background(), 1, "simpledapp.eth")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, "https", uri.Scheme)
|
require.Equal(t, "https", uri.Scheme)
|
||||||
require.Equal(t, "bafybeidzlqpkbtvpjtxnzgew6ffxhozq5f4ojbk64iq3tjl7lkjue2biby.ipfs.cf-ipfs.com", uri.Host)
|
require.Equal(t, "bafybeidzlqpkbtvpjtxnzgew6ffxhozq5f4ojbk64iq3tjl7lkjue2biby.ipfs.infura-ipfs.io/", uri.Host)
|
||||||
require.Equal(t, "", uri.Path)
|
require.Equal(t, "", uri.Path)
|
||||||
|
|
||||||
uri, err = api.ResourceURL(context.Background(), 1, "swarm.eth")
|
uri, err = api.ResourceURL(context.Background(), 1, "swarm.eth")
|
||||||
|
|
|
@ -92,7 +92,7 @@ func (api *API) RemovePending(packID *bigint.BigInt) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, exists := pendingPacks[uint(packID.Uint64())]; !exists {
|
if _, exists := pendingPacks[uint(packID.Uint64())]; !exists {
|
||||||
return errors.New("sticker pack is not pending")
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(pendingPacks, uint(packID.Uint64()))
|
delete(pendingPacks, uint(packID.Uint64()))
|
||||||
|
|
Loading…
Reference in New Issue