Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Ref #123: Rename requirepermission->linkauth
Browse files Browse the repository at this point in the history
The name requirepermission was too long, so I renamed it linkauth
  • Loading branch information
nathanielhourt committed Aug 8, 2017
1 parent e4f3979 commit 05550b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ void apply_eos_okproducer(chain::apply_context&);
void apply_eos_setproducer(chain::apply_context&);
void apply_eos_setproxy(chain::apply_context&);
void apply_eos_setcode(chain::apply_context&);
void apply_eos_linkauth(chain::apply_context&);

} // namespace eos
} // namespace native
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void native_contract_chain_initializer::register_types(chain_controller& chain,
SET_APP_HANDLER( eos, eos, setproducer );
SET_APP_HANDLER( eos, eos, setproxy );
SET_APP_HANDLER( eos, eos, setcode );
SET_APP_HANDLER( eos, eos, linkauth );
}

std::vector<chain::Message> native_contract_chain_initializer::prepare_database(chain_controller& chain,
Expand Down
4 changes: 2 additions & 2 deletions libraries/types/types.eos
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ struct DeletePermission
account AccountName
permission PermissionName

struct requirepermission
struct linkauth
account AccountName # The account to require permissions for
code AccountName # The contract to require permissions to invoke
type FuncName # The message type to require permissions to invoke (if empty, all message types for contract)
requirement PermissionName # The permission name to require
requirement PermissionName # The permission name to require (if empty, use default permission requirement)

0 comments on commit 05550b8

Please sign in to comment.