Hi,
Is there any way we can return or getContractAddress of the deployment smart contract address on Remix contract call function

Oct 14, 2022, 1:31 PM
I didn't understand
Oct 14, 2022, 1:33 PM
I need to getContractAddress from deployment contract something like getBalance or getTotalSupply
Oct 14, 2022, 1:36 PM
I am sorry it is hard to understand
Algorand supports pyteal no?
Oct 14, 2022, 1:56 PM
yes, but is it possible with sol?
Oct 14, 2022, 1:56 PM
Last time I checked no
Oct 14, 2022, 1:56 PM
function getContractAddress()public view returns(address){return address(this);} may be this
Oct 14, 2022, 2:20 PM
wtf
Oct 14, 2022, 2:20 PM
Thanks it worked
Oct 14, 2022, 3:05 PM
wait really?
Oct 14, 2022, 3:05 PM
Yes it is
Oct 14, 2022, 3:05 PM
may I ask why you need to fetch the contract address calling the contract ?
If you are interacting with the contract you already knows its contract address
Oct 14, 2022, 3:06 PM
A small exercise I was trying I need the contract address to be passed for function call
Oct 14, 2022, 3:10 PM
🤔🤔
Oct 14, 2022, 3:11 PM
It’s just a experiment I was trying
Oct 14, 2022, 3:12 PM
ok
Oct 14, 2022, 3:14 PM
what do u mean?
Oct 14, 2022, 3:14 PM
the opcodes don't change
if you know the function selector or you have the abi yes
Oct 14, 2022, 4:47 PM
Can you explain in details ser? Im dummy
Oct 14, 2022, 4:48 PM
ok the contract is your?
Oct 14, 2022, 4:48 PM
Yes ser
Oct 14, 2022, 4:49 PM
ok then you have the abi too
Oct 14, 2022, 4:49 PM
We just deployed it via remix
Oct 14, 2022, 4:49 PM
or wait
did you use Remix to deploy right?
Oct 14, 2022, 4:49 PM
Yep
Oct 14, 2022, 4:49 PM
ok so you should see the functions on the left
Oct 14, 2022, 4:50 PM
Yes
Oooo ser
I found it
Thank you so much
Oct 14, 2022, 4:50 PM
yw
Oct 14, 2022, 4:51 PM

© 2024 Draquery.com All rights reserved.