Get rid of warnings on Kredits initialization #150

Closed
opened 2019-07-02 16:27:49 +00:00 by raucao · 4 comments
raucao commented 2019-07-02 16:27:49 +00:00 (Migrated from github.com)

Every kredits client displays 5 rows of warnings when it initalizes a new Kredits prototype:

WARNING: Multiple definitions for newAppProxy
WARNING: Multiple definitions for newAppProxyPinned
WARNING: Multiple definitions for newAppInstance
WARNING: Multiple definitions for newPinnedAppInstance
WARNING: Multiple definitions for canPerform
Every kredits client displays 5 rows of warnings when it initalizes a new Kredits prototype: ``` WARNING: Multiple definitions for newAppProxy WARNING: Multiple definitions for newAppProxyPinned WARNING: Multiple definitions for newAppInstance WARNING: Multiple definitions for newPinnedAppInstance WARNING: Multiple definitions for canPerform ```
bumi commented 2019-07-02 16:38:19 +00:00 (Migrated from github.com)

I looked at that awhile ago but did not find a solution. I think it is related to ethers.js

I looked at that awhile ago but did not find a solution. I think it is related to ethers.js
raucao commented 2019-07-02 16:53:43 +00:00 (Migrated from github.com)

Example from ipfs-pinner:

Screenshot from 2019-07-02 18-45-56

Example from ipfs-pinner: ![Screenshot from 2019-07-02 18-45-56](https://user-images.githubusercontent.com/842/60531200-b1c8e180-9cfa-11e9-85f3-f48698505707.png)
raucao commented 2019-08-27 11:02:54 +00:00 (Migrated from github.com)

Found the code in ethers (you can search for "Multiple definitions" in there). We'd have to do a PR to maybe change the log level it's using for those warnings (to debug instead of warn).

Found the code in ethers (you can search for "Multiple definitions" in there). We'd have to do a PR to maybe change the log level it's using for those warnings (to `debug` instead of `warn`).
raucao added the enhancement label 2022-07-16 15:19:06 +00:00

Solved.

Solved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kredits/contracts#150