Skip to content

Commit

Permalink
idl instruction: add Write + test
Browse files Browse the repository at this point in the history
  • Loading branch information
ngundotra committed Oct 31, 2022
1 parent c64189b commit e8d8939
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,31 @@
"type": "u8",
"value": 3
}
},
{
"name": "Write",
"accounts": [
{
"name": "idl",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": true
}
],
"args": [
{
"name": "idlData",
"type": "bytes"
}
],
"discriminant": {
"type": "u8",
"value": 4
}
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ pub enum Instruction {
SetBuffer,
#[idl_instruction(SetAuthority)]
SetAuthority,
#[idl_instruction(Write)]
Write,
}

0 comments on commit e8d8939

Please sign in to comment.