fix: minor issues and adding method to retrieve the stickermarket contract address

This commit is contained in:
Richard Ramos 2022-02-27 20:12:34 -04:00
parent c59335aa86
commit 5552f4e4c2
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ func TestResourceURL(t *testing.T) {
uri, err := api.ResourceURL(context.Background(), 1, "simpledapp.eth")
require.NoError(t, err)
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)
uri, err = api.ResourceURL(context.Background(), 1, "swarm.eth")

View File

@ -92,7 +92,7 @@ func (api *API) RemovePending(packID *bigint.BigInt) error {
}
if _, exists := pendingPacks[uint(packID.Uint64())]; !exists {
return errors.New("sticker pack is not pending")
return nil
}
delete(pendingPacks, uint(packID.Uint64()))