Browse Source

Adjust readme example

Armani Ferrante 4 years ago
parent
commit
3646068eff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -43,7 +43,7 @@ mod counter {
 
     pub fn new(ctx: Context<Auth>) -> Result<Self> {
         Ok(Self {
-            auth: *auth.accounts.authority.key
+            auth: *ctx.accounts.authority.key
         })
     }