调用TransferFrom函数,转入转出账户相同,请问是我的代码有什么问题吗
const linkContract = new web3.eth.Contract(contractABI, contractAddress);
export default {
methods: {
async approveLink() {
let result = await linkContract.methods
.approve(authAddress, "10")
.send({ from: walletAddress });
console.log(result);
},
async transferFrom() {
let result = await linkContract.methods
.transferFrom(walletAddress, authAddress, "10")
.send({
from: authAddress,
gas: "100000",
});
console.log(result);
}
}