Git Product home page Git Product logo

Comments (4)

ZainAchak avatar ZainAchak commented on June 8, 2024

Please put double quotes " around the address to make it string. "Address"

from defi_pancakeswapbot.

Lucas901 avatar Lucas901 commented on June 8, 2024

i've already done that, i will paste the error below. Thanks for the help.

File "C:\Users\lucas\codigo_programas\PycharmProjects\DeFi_PanCakeSwapBot-master\DeFiTranscation.py", line 291, in
runCode()
File "C:\Users\lucas\codigo_programas\PycharmProjects\DeFi_PanCakeSwapBot-master\DeFiTranscation.py", line 133, in runCode
BNB_balance, TokenSymbol, NoOfTokens, params = InitializeTrade()
File "C:\Users\lucas\codigo_programas\PycharmProjects\DeFi_PanCakeSwapBot-master\DeFiTranscation.py", line 70, in InitializeTrade
BNB_balance = web3.eth.get_balance(walletAddress)
File "C:\Python39\lib\site-packages\web3\module.py", line 53, in caller
(method_str, params), response_formatters = method.process_params(module, *args, **kwargs) # noqa: E501
File "C:\Python39\lib\site-packages\web3\method.py", line 202, in process_params
_apply_request_formatters(params, self.request_formatters(method)))
File "C:\Python39\lib\site-packages\eth_utils\functional.py", line 45, in inner
return callback(fn(*args, **kwargs))
File "C:\Python39\lib\site-packages\web3\method.py", line 52, in _apply_request_formatters
formatted_params = pipe(params, request_formatters)
File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe
return c_pipe(data, funcs)
File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
data = func(data)
File "cytoolz/functoolz.pyx", line 505, in cytoolz.functoolz.Compose.call
ret = func(ret)
File "cytoolz/functoolz.pyx", line 254, in cytoolz.functoolz.curry.call
raise
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
return self.func(*args, **kwargs)
File "C:\Python39\lib\site-packages\web3_utils\abi.py", line 799, in map_abi_data
return pipe(data, *pipeline)
File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe
return c_pipe(data, funcs)
File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
data = func(data)
File "cytoolz/functoolz.pyx", line 254, in cytoolz.functoolz.curry.call
raise
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
return self.func(*args, **kwargs)
File "C:\Python39\lib\site-packages\web3_utils\abi.py", line 833, in data_tree_map
return recursive_map(map_to_typed_data, data_tree)
File "C:\Python39\lib\site-packages\web3_utils\decorators.py", line 30, in wrapped
wrapped_val = to_wrap(*args)
File "C:\Python39\lib\site-packages\web3_utils\formatters.py", line 89, in recursive_map
items_mapped = map_collection(recurse, data)
File "C:\Python39\lib\site-packages\web3_utils\formatters.py", line 76, in map_collection
return datatype(map(func, collection))
File "C:\Python39\lib\site-packages\web3_utils\formatters.py", line 88, in recurse
return recursive_map(func, item)
File "C:\Python39\lib\site-packages\web3_utils\decorators.py", line 30, in wrapped
wrapped_val = to_wrap(*args)
File "C:\Python39\lib\site-packages\web3_utils\formatters.py", line 90, in recursive_map
return func(items_mapped)
File "C:\Python39\lib\site-packages\web3_utils\abi.py", line 830, in map_to_typed_data
return ABITypedData(func(*elements))
File "C:\Python39\lib\site-packages\web3_utils\normalizers.py", line 78, in wrapper
modified = to_wrap(type_str, data)
File "C:\Python39\lib\site-packages\web3_utils\normalizers.py", line 196, in abi_address_to_hex
validate_address(data)
File "C:\Python39\lib\site-packages\web3_utils\validation.py", line 177, in validate_address
raise TypeError('Address {} must be provided as a string'.format(value))
TypeError: Address None must be provided as a string

from defi_pancakeswapbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.