second check should be fee, not amount again (#4112)
This commit is contained in:
parent
12751ce811
commit
536d33ef59
|
@ -550,7 +550,7 @@ class WalletRpcApi:
|
|||
wallet_id = int(request["wallet_id"])
|
||||
wallet = self.service.wallet_state_manager.wallets[wallet_id]
|
||||
|
||||
if not isinstance(request["amount"], int) or not isinstance(request["amount"], int):
|
||||
if not isinstance(request["amount"], int) or not isinstance(request["fee"], int):
|
||||
raise ValueError("An integer amount or fee is required (too many decimals)")
|
||||
amount: uint64 = uint64(request["amount"])
|
||||
puzzle_hash: bytes32 = decode_puzzle_hash(request["address"])
|
||||
|
|
Loading…
Reference in New Issue