From 57ee3b9b4c6d769689a97b75fed3812a36a3b6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20P=C3=A9rez=20V=C3=A1zquez?= Date: Wed, 20 Oct 2021 15:45:42 +0100 Subject: [PATCH 1/3] Change property name to match backend response and update types --- packages/safe-apps-sdk/src/types/gateway.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/safe-apps-sdk/src/types/gateway.ts b/packages/safe-apps-sdk/src/types/gateway.ts index e71be95a..ba6d2241 100644 --- a/packages/safe-apps-sdk/src/types/gateway.ts +++ b/packages/safe-apps-sdk/src/types/gateway.ts @@ -189,10 +189,10 @@ export type MultiSigConfirmations = { signature: string | null; }; -export type TokenType = 'ERC721' | 'ERC20' | 'ETHER'; +export type TokenType = 'ERC721' | 'ERC20' | 'NATIVE_TOKEN'; export type TokenInfo = { - tokenType: TokenType; + type: TokenType; address: string; decimals: number; symbol: string; From 2c90675820c8410c32dfbcb03cb72cde46dbaa15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20P=C3=A9rez=20V=C3=A1zquez?= Date: Thu, 21 Oct 2021 09:58:13 +0200 Subject: [PATCH 2/3] Add yagopv to CLA --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index fb8f5a54..2a30ed84 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -21,6 +21,6 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-cla-document: 'https://gnosis-safe.io/cla/' branch: 'cla-signatures' - allowlist: germartinez,mikheevm,rmeissner,Uxio0,dasanra,davidalbela,luarx,giacomolicari,lukasschor,tschubotz,gnosis-info,bot*,katspaugh,fmrsabino + allowlist: germartinez,mikheevm,rmeissner,Uxio0,dasanra,davidalbela,luarx,giacomolicari,lukasschor,tschubotz,gnosis-info,bot*,katspaugh,fmrsabino,yagopv empty-commit-flag: false blockchain-storage-flag: false From 9a4d3a4ca2076e574b3a5e5d5796cec380a0b7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20P=C3=A9rez=20V=C3=A1zquez?= Date: Fri, 22 Oct 2021 12:46:52 +0200 Subject: [PATCH 3/3] changeset --- .changeset/moody-boats-rush.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/moody-boats-rush.md diff --git a/.changeset/moody-boats-rush.md b/.changeset/moody-boats-rush.md new file mode 100644 index 00000000..108d261b --- /dev/null +++ b/.changeset/moody-boats-rush.md @@ -0,0 +1,5 @@ +--- +'@gnosis.pm/safe-apps-sdk': major +--- + +Fix type prop not matching backend response