F
Flow4mo ago
joshua

joshua | Flow (2024-05-28)

I have a contract that I have imported in my transaction, like FlowServiceAccount in this instance. Am I able to get the address of that contract in my code? I don't see it in the documentation:
import FlowServiceAccount from 0x11

transaction {
prepare() {
// is there some way I can get the address at run time?
let address = FlowServiceAccount.address
}
}
import FlowServiceAccount from 0x11

transaction {
prepare() {
// is there some way I can get the address at run time?
let address = FlowServiceAccount.address
}
}
3 Replies
Needle
Needle4mo ago
I've created a thread for your message. Please continue any relevant discussion in this thread. You can rename this thread using /title <new title> If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadence
turbolent
turbolent4mo ago
Can't think of a way how you could do that at the moment
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server