在我将const amountOut
添加到文件之前,一切都有效。
带有错误&中断代码的函数位置
你传递了2个参数到一个预期3个的函数。第二个参数是一个值,因为它是用括号括起来的数组[AddressFrom, AddressTo]。
您将需要修改如何将参数传递给getAmountsOut函数或修改getAmountsOut函数以接受2个参数,其中一个是数组。
在我将const amountOut
添加到文件之前,一切都有效。
带有错误&中断代码的函数位置
你传递了2个参数到一个预期3个的函数。第二个参数是一个值,因为它是用括号括起来的数组[AddressFrom, AddressTo]。
您将需要修改如何将参数传递给getAmountsOut函数或修改getAmountsOut函数以接受2个参数,其中一个是数组。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium