Skip to content

Commit fbe4b32

Browse files
committed
fix: wallet not found
1 parent b03d18a commit fbe4b32

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

api/src/apihandler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ void APIHandler::WalletDataGet(WalletDataGetResult& _return, const general::Addr
130130
const csdb::Address addr = BlockChain::getAddressFromKey(address);
131131
BlockChain::WalletData wallData{};
132132
BlockChain::WalletId wallId{};
133-
if (!s_blockchain.findWalletData(addr, wallData, wallId)) {
134-
SetResponseStatus(_return.status, APIRequestStatusType::NOT_FOUND);
133+
if (!s_blockchain.findWalletData(addr, wallData, wallId))
135134
return;
136-
}
137135
_return.walletData.walletId = wallId;
138136
_return.walletData.balance.integral = wallData.balance_.integral();
139137
_return.walletData.balance.fraction = static_cast<decltype(_return.walletData.balance.fraction)>(wallData.balance_.fraction());

0 commit comments

Comments
 (0)