check how many token the spender is allowed to spend from owner account :param owner: token owner :param spender: token spender :return: the allowed amount of tokens
(owner,spender)
| 263 | |
| 264 | |
| 265 | def allowance(owner,spender): |
| 266 | """ |
| 267 | check how many token the spender is allowed to spend from owner account |
| 268 | :param owner: token owner |
| 269 | :param spender: token spender |
| 270 | :return: the allowed amount of tokens |
| 271 | """ |
| 272 | key = concat(concat(APPROVE_PREFIX,owner),spender) |
| 273 | return Get(ctx,key) |
| 274 | |
| 275 | |
| 276 | def testcase(): |
no outgoing calls
no test coverage detected