浏览代码

Adjust readme example

Armani Ferrante 4 年之前
父节点
当前提交
3646068eff
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
         })
     }