Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Feature Request : a qr-code which can call a smart contract function #30

Open
SyedMuhamadYasir opened this issue Sep 23, 2019 · 1 comment

Comments

@SyedMuhamadYasir
Copy link

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

@stcherenkov
Copy link

Hello! Sorry, but this repository is not supported anymore.

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

No branches or pull requests

2 participants