在应付地址中查找依赖于参数的查找后,找不到成员"tranfer"或不可见



我正在使用remix编写一个简单的智能合约,从一组钱包中执行交易

这是我写的代码:

pragma solidity ^0.5.7;
contract Will{
address owner;
uint fortune;
bool isDeceased;
constructor() payable public {
owner = msg.sender;
fortune = msg.value;
isDeceased = false;
}
modifier onlyOwner{
require(msg.sender == owner);
_;
}
modifier mustBeDeceased{
require(isDeceased == true);
_;
}
address payable[]  familyWallets;
mapping(address => uint) inheritance;
function setInheritance (address payable wallet, uint amount) public {
familyWallets.push(wallet);
inheritance[wallet] = amount;
}
function payout() private mustBeDeceased{
for(uint i = 0; i<familyWallets.length;i++){
familyWallets[i].tranfer(inheritance[familyWallets[i]]);
}
} 
function deceased()public onlyOwner{
isDeceased = true;
payout();
}
}

我在第35行得到以下错误:

TypeError: Member " transfer ">
应付地址中与参数相关的查找后未找到或不可见。familyWallets[我].tranfer(继承[familyWallets[我]]);

从我提到的所有解决方案中,它要求我写应付地址,因为这是solid v0.5的一个突破性变化,但同样不适用于我。

我想你这里犯了一个打字错误,函数应该是transfer