[x] On the item details page, if the current user is the owner (based on their wallet's pubKeyHash), there is a "Change Price" button displayed
[x] When the "Change Price" button is clicked, a modal dialog is displayed that shows the current price of the NFT, an input that accepts a new price, and a button to confirm the new price
[x] Once the button has been clicked to change the price, the sdk.makeTransaction.setPrice() function is called with appropriate params
Additional Details:
This functionality will be extended further once more details have been clarified (will be in separate issue).
To get the connected wallet's pubKeyHash, use the new useWalletContext() hook. It has a getPubKeyHashes() field.
In order for the wallet context to return a mock pubKeyHash, you will first need to connect to the 'TEST' wallet using the connect method of the wallet context (UI for this not yet added)
Acceptance Criteria:
sdk.makeTransaction.setPrice()
function is called with appropriate paramsAdditional Details:
useWalletContext()
hook. It has agetPubKeyHashes()
field.connect
method of the wallet context (UI for this not yet added)