You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
to make my request a bit more clear, let me show you what the show_information function looks like in Solidity;
function show_information(string a) public view returns (string) { return mapping_name[a] // where mapping_name is a mapping and a is the key }
so like if we scan a qr-code, on the backend, we can retrieve the key_value from the qr-code and then we can call the show_information() function , from the web3.py front-end by doing something like;
Hello there !
the heading of this issue says it all, but i will elaborate further. I am using web3.py and remix browser IDE to test smart contracts in solidity.
so basically my web3.py front-end is implementing this code;
contract = web3.eth.contract(address=address, abi=abi)
where address is contract address and abi is contract abi
i intend on calling a function called show_information in my contract;
contract.functions.show_information(key_value).call()
to make my request a bit more clear, let me show you what the show_information function looks like in Solidity;
function show_information(string a) public view returns (string)
{
return mapping_name[a] // where mapping_name is a mapping and a is the key
}
so like if we scan a qr-code, on the backend, we can retrieve the key_value from the qr-code and then we can call the
show_information()
function , from the web3.py front-end by doing something like;contract.functions.show_information(key_value_obtained_from_qr_code).call()
if this capability already exists in this qr-code module, please let me know
otherwise, consider this a feature request
The text was updated successfully, but these errors were encountered: