Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

[PI-139]: Do not mutate the object config during l1 storage #552

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rhino.fi/client-js",
"version": "5.2.0",
"version": "5.2.1",
"main": "src/index.js",
"files": [
"src",
Expand Down
4 changes: 3 additions & 1 deletion src/api/storeStarkL1Registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
module.exports = async (dvf, nonce, signature) => {
const url = '/v1/trading/storeStarkL1Registration'

const { ethAddress } = await dvf.getUserConfig(nonce, signature)
// Explicitly fetch the config to get the user's registered address
// in the backend
const { ethAddress } = await dvf.getUserConfigFromServer(nonce, signature)

const l1RegistrationSignature = await dvf.stark.signRegistration(
ethAddress
Expand Down