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 ae68836
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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
8 changes: 4 additions & 4 deletions test/tests/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ suite('Account', function () {
})
})

test('linkauth', () => {
const action = testAccount.linkauth('eosio.token', 'transfer', 'active')
test('linkAuth', () => {
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 @@ -230,8 +230,8 @@ suite('Account', function () {
assert.isTrue(decoded.requirement.equals('active'))
})

test('unlinkauth', () => {
const action = testAccount.unlinkauth('eosio.token', 'transfer')
test('unlinkAuth', () => {
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 ae68836

Please sign in to comment.