Skip to content

Conversation

@milan-cb
Copy link
Contributor

What changed? Why?

A bug fix for non-checksummed addresses was added in this release. The change was made to prevent users from encountering an "unsupported asset" error when using non-checksummed addresses for assets.

Qualified Impact

This component mainly affects the assets class, where the asset id gets normalized. If there are any issues, it should be safe to revert back to v0.14.0 and then fix any errors before re-releasing.

### What changed? Why?
There was a bug in the from_model function in asset.py. On the backend
side, any asset id is checksummed before retrieving its details, and
when it returns a response to the SDK, its asset id is also checksummed.
When a user enters a non-checksummed address, they will get an error
since those two asset ids are not equivalent.

This change will allow users to use non-checksummed addresses without
getting erroneous errors in their workflow.

Before:
```
>>> wallet.balance('0x8309fbdf021edf768dc13195741940ba544dea98')

ArgumentError: Unsupported asset ID: 0x8309fbdf021edf768dc13195741940ba544dea98
```

After:
```
>>> wallet.balance('0x8309fbdf021edf768dc13195741940ba544dea98')

0.0
```

#### Qualified Impact
This change should not be a breaking change for the SDK. The same logic
of the check for asset ids exists, but with the normalization of cases,
it prevents the bug of non-checksummed addresses and checksummed
addresses being considered as unequal.
What changed? Why?
The package versions and changelog were updated to reflect the upcoming
release of SDK version v0.16.0.

Qualified Impact
The impact of this change will update the SDK to the latest version
which includes one bug fix. In the case of any errors or failures, the
best approach would be to rollback to v0.14.0 and re-release a new
version after fixing any errors.
@cb-heimdall
Copy link

cb-heimdall commented Jan 28, 2025

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@milan-cb milan-cb merged commit 30b66d8 into master Jan 29, 2025
10 checks passed
@jazz-cb jazz-cb deleted the v0.16.0 branch January 29, 2025 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants