bynk.actor.foreign_duplicate_secret
Error A Foreign actor's secret is also another actor's secret in the same context.
A context tells its foreign callers apart by the secret their calls are signed under, and bynk deploy mints one secret per name. Two actors on one secret could each pass for the other, so a foreign actor's secret may be no other actor's. Give each its own variable.
Example
actor Legacy { auth = Foreign(secret = "SHARED_KEY") }actor Ledger { auth = Foreign(secret = "SHARED_KEY") } // ✗ `Legacy` already uses it
actor Ledger { auth = Foreign(secret = "LEDGER_CALL_KEY") } // ✓ its own variableIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.foreign_duplicate_secretshows the same from the installed toolchain, without a network.