Skip to content

Commit

Permalink
cleanup: using consistent casing for method names
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 14, 2023
1 parent 47a291b commit e805a9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class Account {
})
}

linkauth(contract: NameType, action: NameType, requiredPermission: NameType): Action {
linkAuth(contract: NameType, action: NameType, requiredPermission: NameType): Action {
return this.systemContract.action('linkauth', {
account: this.accountName,
code: contract,
Expand All @@ -151,7 +151,7 @@ export class Account {
})
}

unlinkauth(contract: NameType, action: NameType): Action {
unlinkAuth(contract: NameType, action: NameType): Action {
return this.systemContract.action('unlinkauth', {
account: this.accountName,
code: contract,
Expand Down
4 changes: 2 additions & 2 deletions test/tests/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ suite('Account', function () {
})

test('linkauth', () => {
const action = testAccount.linkauth('eosio.token', 'transfer', 'active')
const action = testAccount.linkAuth('eosio.token', 'transfer', 'active')
assert.isTrue(action.account.equals('eosio'))
assert.isTrue(action.name.equals('linkauth'))
assert.isTrue(action.authorization[0].equals(PlaceholderAuth))
Expand All @@ -231,7 +231,7 @@ suite('Account', function () {
})

test('unlinkauth', () => {
const action = testAccount.unlinkauth('eosio.token', 'transfer')
const action = testAccount.unlinkAuth('eosio.token', 'transfer')
assert.isTrue(action.account.equals('eosio'))
assert.isTrue(action.name.equals('unlinkauth'))
assert.isTrue(action.authorization[0].equals(PlaceholderAuth))
Expand Down

0 comments on commit e805a9f

Please sign in to comment.