Skip to content

fix: usdc approve fails from dcl - #469

Merged
levalleux-ludo merged 2 commits into
releases/mvfw-2023from
fix-USDC-approve-from-DCL
Mar 29, 2023
Merged

fix: usdc approve fails from dcl#469
levalleux-ludo merged 2 commits into
releases/mvfw-2023from
fix-USDC-approve-from-DCL

Conversation

@levalleux-ludo

Copy link
Copy Markdown
Member

Description

USDC approval meta-tx signing fails only when called from DCL
This was coming from getNonce() implementation that retries with "nonces" instead of "getNonce" only when failing and the error message matches the one returned by Metamask. However on DCL, we are using an HTTP provider instead of Metamask and the error message is not the same.

How to test

N/A

@levalleux-ludo
levalleux-ludo marked this pull request as ready for review March 29, 2023 13:23
@levalleux-ludo levalleux-ludo changed the title fix: USDC approve fails from DCL fix: usdc approve fails from dcl Mar 29, 2023
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #469 (6cb6d2b) into releases/mvfw-2023 (5456277) will increase coverage by 1.13%.
The diff coverage is 0.00%.

❗ Current head 6cb6d2b differs from pull request most recent head 165b5fe. Consider uploading reports for the commit 165b5fe to get more accurate results

@@                  Coverage Diff                   @@
##           releases/mvfw-2023     #469      +/-   ##
======================================================
+ Coverage               54.65%   55.79%   +1.13%     
======================================================
  Files                     127      121       -6     
  Lines                    3692     3459     -233     
  Branches                  629      573      -56     
======================================================
- Hits                     2018     1930      -88     
+ Misses                   1674     1529     -145     
Flag Coverage Δ
common 84.61% <ø> (-0.22%) ⬇️
core-sdk 52.57% <0.00%> (+1.35%) ⬆️
eth-connect-sdk 18.30% <ø> (ø)
ethers-sdk 66.12% <ø> (-1.00%) ⬇️
ipfs-storage 94.02% <ø> (ø)
metadata 97.56% <ø> (ø)
unittests 55.79% <0.00%> (+1.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/core-sdk/src/native-meta-tx/handler.ts 24.48% <0.00%> (+0.48%) ⬆️

... and 28 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@levalleux-ludo
levalleux-ludo merged commit f56c87c into releases/mvfw-2023 Mar 29, 2023
@levalleux-ludo
levalleux-ludo deleted the fix-USDC-approve-from-DCL branch March 29, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants