Skip to content

Commit

Permalink
fix nonce bug
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Aug 7, 2023
1 parent 96c6a3e commit fc47051
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stores/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ const createStore = () => {

// draft project c(r)ud
const updateDraft = async (address, data) => {
console.log(data)
localStorage.setItem(`rge:draft:${address}`, serialize(data))
add(address)
}
Expand All @@ -288,6 +289,8 @@ const createStore = () => {
console.log({ draftNonce })
const address = toHexString(draftNonce, 40)
updateDraft(address, data)
draftNonce++
localStorage.setItem(draftNonceKey(), draftNonce)
return address
}

Expand Down

0 comments on commit fc47051

Please sign in to comment.