Ethereum web3 encodeFunctionCall不起作用(在一个事务中两个特定函数一起调用不起作用)

Ethereum web3 encodeFunctionCall不起作用(在一个事务中两个特定函数一起调用不起作用),ethereum,solidity,smartcontracts,web3,web3js,Ethereum,Solidity,Smartcontracts,Web3,Web3js,我正试图使用web3 encodeFunctionCall在同一笔交易中从yDAI(Drearn.finance)执行存款和取款功能存款功能正常,但是,取款功能失败。但是,如果我单独执行draw函数,那么它就会工作 let abi1 = web3.eth.abi.encodeFunctionCall( { "name": "deposit", "type": "function", "inputs"

我正试图使用web3 encodeFunctionCall在同一笔交易中从
yDAI(Drearn.finance)
执行
存款
取款
功能<代码>存款功能正常,但是,
取款
功能失败。但是,如果我单独执行
draw
函数,那么它就会工作

let abi1 = web3.eth.abi.encodeFunctionCall( { "name": "deposit", "type": "function", "inputs": [ { "name": "_amount", "type": "uint256" } ] }, [web3.utils.toWei((1000).toString(), 'Ether')] );

let abi2 = web3.eth.abi.encodeFunctionCall( {"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}, [] );
我在js文件中对上述内容进行编码,然后使用数组调用智能合约中的函数。智能合约中存在的代码:

for (uint i = 0; i < _addrs.length; i++)
    address(_addrs[i]).call(_bytecode[i]);
for(uint i=0;i<\u addrs.length;i++)
地址(_addrs[i])。调用(_字节码[i]);
没有错误消息

这是
yDAI(earn.finance)
的代码和abi

有人能帮我解这个谜吗

问候,,
哈里什

你解决了这个问题吗?不,我没能解决。你解决了吗?不,我没能解决。