Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 70e441c

Browse files
committed
fix: 🐛 modify examples and tests to suit changes
1 parent 37b5a3e commit 70e441c

10 files changed

+12
-12
lines changed

examples/countTransferManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ window.addEventListener('load', async () => {
2929
const tokenName = prompt('Token Name', '');
3030

3131
// Double check available
32-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
32+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3333
ticker: ticker!,
3434
});
3535

examples/etherDividend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ window.addEventListener('load', async () => {
2727
const tokenName = prompt('Token Name', '');
2828

2929
// Double check available
30-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
30+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3131
ticker: ticker!,
3232
});
3333

examples/generalPermissionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ window.addEventListener('load', async () => {
2828
const tokenName = prompt('Token Name', '');
2929

3030
// Double check available
31-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
31+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3232
ticker: ticker!,
3333
});
3434

examples/generalTransferManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ window.addEventListener('load', async () => {
2727
const tokenName = prompt('Token Name', '');
2828

2929
// Double check available
30-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
30+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3131
ticker: ticker!,
3232
});
3333

examples/mintTokenToInvestor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ window.addEventListener('load', async () => {
2727
const tokenName = prompt('Token Name', '');
2828

2929
// Double check available
30-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
30+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3131
ticker: ticker!,
3232
});
3333
// Get the ticker fee and approve the security token registry to spend

examples/percentageTransferManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ window.addEventListener('load', async () => {
2727
const tokenName = prompt('Token Name', '');
2828

2929
// Double check available
30-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
30+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3131
ticker: ticker!,
3232
});
3333
// Get the ticker fee and approve the security token registry to spend

examples/registerTicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ window.addEventListener('load', async () => {
5656
});
5757
};
5858

59-
const tickerAvailable = await polymathAPI.securityTokenRegistry.isTickerAvailable({
59+
const tickerAvailable = await polymathAPI.securityTokenRegistry.tickerAvailable({
6060
ticker: ticker!,
6161
});
6262

examples/usdTieredSTO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ window.addEventListener('load', async () => {
2828
const tokenName = prompt('Token Name', '');
2929

3030
// Double check available
31-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
31+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3232
ticker: ticker!,
3333
});
3434
// Get the ticker fee and approve the security token registry to spend

examples/volumeRestrictionTransferManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ window.addEventListener('load', async () => {
2929
const tokenName = prompt('Token Name', '');
3030

3131
// Double check available
32-
await polymathAPI.securityTokenRegistry.isTickerAvailable({
32+
await polymathAPI.securityTokenRegistry.tickerAvailable({
3333
ticker: ticker!,
3434
});
3535

src/contract_wrappers/registries/__tests__/security_token_registry_wrapper.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ describe('SecurityTokenRegistryWrapper', () => {
14981498
});
14991499
});
15001500

1501-
describe('IsTickerAvailable', () => {
1501+
describe('TickerAvailable', () => {
15021502
test('should return false as ticker is registered and deployed', async () => {
15031503
const expectedResult = [
15041504
'0x0123456789012345678901234567890123456789',
@@ -1516,7 +1516,7 @@ describe('SecurityTokenRegistryWrapper', () => {
15161516
when(mockedMethod.callAsync(ticker)).thenResolve(expectedResult);
15171517

15181518
// Real call
1519-
const result = await target.isTickerAvailable({ ticker });
1519+
const result = await target.tickerAvailable({ ticker });
15201520
// Result expectation
15211521
expect(result).toEqual(false);
15221522
// Verifications
@@ -1537,7 +1537,7 @@ describe('SecurityTokenRegistryWrapper', () => {
15371537
when(mockedMethod.callAsync(ticker)).thenResolve(expectedResult);
15381538

15391539
// Real call
1540-
const result = await target.isTickerAvailable({ ticker });
1540+
const result = await target.tickerAvailable({ ticker });
15411541
// Result expectation
15421542
expect(result).toEqual(true);
15431543
// Verifications

0 commit comments

Comments
 (0)