Skip to content

stellar contract invoke can't find a signer by its public keys #2459

@ifropc

Description

@ifropc

What version are you using?

Latest

What did you do?

  1. Call invoke passing --admin by its public key -> fails
[ ~/projects/goldsky ] > stellar contract invoke --id CBC7JZTXRS7X6DCX6DRCI2NFJJI4BXYPTPOGVG3GPHH27OMPKR434BSX -- deploy --wasm-name increment --contract-name test --admin GAPGYTYEYIHW5TXR2EBF7FE26P2JELDMZKO3P4SJGPJTHMX33VCXSKV7
ℹ️  Simulating transaction…
❌ error: Missing signing key for account GAPGYTYEYIHW5TXR2EBF7FE26P2JELDMZKO3P4SJGPJTHMX33VCXSKV7
  1. Call invoke passing --admin by identity (alice) -> ok
[ ~/projects/goldsky ] > stellar contract invoke --id CBC7JZTXRS7X6DCX6DRCI2NFJJI4BXYPTPOGVG3GPHH27OMPKR434BSX -- deploy --wasm-name increment --contract-name test --admin alice
ℹ️  Simulating transaction…
ℹ️  Signing transaction: 5c4b70bf68e1a76eba23e0ea5df56e46cc7a112b13407d09b3c048218cd3f060
🌎 Sending transaction…
✅ Transaction submitted successfully!
🔗 https://stellar.expert/explorer/testnet/tx/5c4b70bf68e1a76eba23e0ea5df56e46cc7a112b13407d09b3c048218cd3f060
📅 CBC7JZTXRS7X6DCX6DRCI2NFJJI4BXYPTPOGVG3GPHH27OMPKR434BSX - Success - Event: Deploy (deploy), wasm_name: "increment", version: "1.0.0", deployer: "CBC7JZTXRS7X6DCX6DRCI2NFJJI4BXYPTPOGVG3GPHH27OMPKR434BSX", contract_id: "CB5GUINWUNEIGCQ2KN6633DPPY57YNCFQVV7YMMOCY4GIJS5L7BVFN5S"
📅 CBC7JZTXRS7X6DCX6DRCI2NFJJI4BXYPTPOGVG3GPHH27OMPKR434BSX - Success - Event: Register (register), contract_name: "test", contract_id: "CB5GUINWUNEIGCQ2KN6633DPPY57YNCFQVV7YMMOCY4GIJS5L7BVFN5S", sac: false, wasm_hash: "3e590fe335b9c078ff4fccfd896dd38ce652b4c7d9360d3ad641e52d528f0d81"
"CB5GUINWUNEIGCQ2KN6633DPPY57YNCFQVV7YMMOCY4GIJS5L7BVFN5S"
  1. Showing the store
[ ~/projects/goldsky ] > stellar keys ls                                         
alice
me
[ ~/projects/goldsky ] > stellar keys public-key alice
GAPGYTYEYIHW5TXR2EBF7FE26P2JELDMZKO3P4SJGPJTHMX33VCXSKV7
[ ~/projects/goldsky ] > stellar keys show alice      
S*******

What did you expect to see?

Contract invoking passing admin by its public key works

What did you see instead?

Missing signing key for account, even though key is not missing at all

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog (Not Ready)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions