second check should be fee, not amount again (#4112)

This commit is contained in:
Chris Marslender 2021-05-12 10:49:48 -07:00 committed by GitHub
parent 12751ce811
commit 536d33ef59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"])