bank: public({
account_balance: num,
person: bytes32
}[num])
@public
@payable
def transfer(sender_accno: num, reciever_accno: num, amount: num):
if self.bank[sender_accno].account_balance >= amount:
pass
throwing error "AttributeError: 'Name' object has no attribute 'value'
" at this line
if self.bank[sender_accno].account_balance >= amount:
account_balance and amount are both of same type 'num' and it does support >= comparison operator. So, what's wrong with that?