#finding the ledger key of a contract installation with js

1 messages · Page 1 of 1 (latest)

uneven solar
#

https://runkit.com/silence48/rpciege4
I was trying to figure it out in this runkit if anyone can show me where i went wrong that'd be great ❤️ ignore the other unrelated code that was for rpciege

undone herald
#

this line is odd: key: new xdr.ScValType(20)? it should be an ScVal

#

I think you need something more like key: xdr.ScVal.scvLedgerKeyContractExecutable()

uneven solar
#

ah i tried that first and it didn't work, i was tryin to figure out how to use the enum value but couldn't get that to work either

#

dunno why i put new

#

yeah that didn't work either. I will play with this more tomorrow

#

i must be doing something wrong

#

ahhhh it did work !!! "AAAABvR+PjQYfchKqf9BEICC0onN9uQHIM37qPzZl0NpudMuAAAAFA=="

earnest anchor
uneven solar