Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base Mainnet issue with getAmountsOut #365

Open
Razorholt opened this issue Jan 10, 2025 · 0 comments
Open

Base Mainnet issue with getAmountsOut #365

Razorholt opened this issue Jan 10, 2025 · 0 comments

Comments

@Razorholt
Copy link

I'm having difficulties swapping on Base Mainnet. I tried on Eth, Bsc and Avax chains with successful results but I can't make it work on Base. Here is the error:

Fatal error: Uncaught RuntimeException: execution reverted in /home/tradesys/vendor/web3p/web3.php/src/Providers/HttpProvider.php:198 Stack trace: #0 /home/tradesys/vendor/web3p/web3.php/src/Providers/HttpProvider.php(83): Web3\Providers\HttpProvider->sendPayload('{"id":645346134...', Object(Closure)) #1 /home/tradesys/vendor/web3p/web3.php/src/Eth.php(105): Web3\Providers\HttpProvider->send(Object(Web3\Methods\Eth\Call), Object(Closure)) #2 /home/tradesys/vendor/web3p/web3.php/src/Contract.php(667): Web3\Eth->__call('call', Array) #3 /home/tradesys/public_html/trading/test_swaptoken.php(118): Web3\Contract->call('getAmountsOut', Object(phpseclib\Math\BigInteger), Array, Array, Object(Closure)) #4 /home/tradesys/public_html/trading/test_swaptoken.php(147): getUniV2AmountsOut(Object(Web3\Contract), Object(phpseclib\Math\BigInteger), Array, Array) #5 {main} thrown in /home/tradesys/vendor/web3p/web3.php/src/Providers/HttpProvider.php on line 198

The getAmountsOut method is present in the Json file.

Thanks!
-Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant