Skip to content

Commit fcbf24d

Browse files
authored
Fix: logoUri is not optional in TokenInfo (#82)
1 parent 34d7515 commit fcbf24d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gnosis.pm/safe-react-gateway-sdk",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"main": "dist/index.min.js",
55
"types": "dist/index.d.ts",
66
"files": [

src/types/common.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ export enum TokenType {
3232
NATIVE_TOKEN = 'NATIVE_TOKEN',
3333
}
3434

35+
/**
36+
* @see https://github.com/safe-global/safe-client-gateway/blob/main/src/common/models/backend/balances.rs
37+
*/
3538
export type TokenInfo = {
3639
type: TokenType
3740
address: string
3841
decimals: number
3942
symbol: string
4043
name: string
41-
logoUri: string | null
44+
logoUri: string
4245
}
4346

4447
export type SafeBalanceResponse = {

src/types/decoded-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export type DecodedDataParameterValue = {
1515
to: string
1616
value: string
1717
data: string
18-
dataDecoded: {
18+
dataDecoded?: {
1919
method: string
2020
parameters: DecodedDataBasicParameter[]
21-
} | null
21+
}
2222
}
2323

2424
export type DecodedDataParameter = {

0 commit comments

Comments
 (0)