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

Commit

Permalink
update rc
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Dec 30, 2023
1 parent 42de9eb commit 6e9cbdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ord.pomelo.contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ icon: https://gateway.pinata.cloud/ipfs/QmNbkDh7ZSkRf7j1peg9YnDoBnJbVg5TMdRfVGYV
---
spec_version: "0.2.0"
title: newaddress
summary: New bech32 Bitcoin address
summary: Set {{asset_id}} asset to {{bech32_bitcoin_address}} bech32 Bitcoin address
icon: https://gateway.pinata.cloud/ipfs/QmNbkDh7ZSkRf7j1peg9YnDoBnJbVg5TMdRfVGYV3hxhhD#b74cf8b3d884f42fffea4bfe7070b3871e1845805c57973a48324af1228ad9cc
---
2 changes: 1 addition & 1 deletion ord.pomelo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void ord::newaddress(const name from, const uint64_t asset_id, const string bech

check_bech32_bitcoin_address(bech32_bitcoin_address);
ord::ords_table _ords( get_self(), get_self().value );
auto ord = _ords.get(asset_id, "Asset ID not found");
auto & ord = _ords.get(asset_id, "Asset ID not found");
check(ord.from == from, "Cannot change NFT asset address unless owner");
check(ord.bech32_bitcoin_address != bech32_bitcoin_address, "New address is the same as the old address");
_ords.modify(ord, same_payer, [&](auto &row) {
Expand Down

0 comments on commit 6e9cbdb

Please sign in to comment.