Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: friendlyping <[email protected]>
  • Loading branch information
friendlyping committed Aug 16, 2024
1 parent c43d981 commit fb3cfa3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ describe('extract and encode multiple values', () => {
).toThrow('Parameter "_path" must be empty string or undefined when "_type" is "timestamp", but it was "1"');
});

it('throws if _times is present for non numberic types', () => {
it('throws if _times is present for non numeric types', () => {
const encodedString = ethers.utils.formatBytes32String('simplestring');
expect(() => extractAndEncodeResponse(encodedString, { _type: 'bytes32', _times: '1000' })).toThrow(
'Parameter "_times" can only be used with numeric types, but "_type" was "bytes32"'
Expand Down
4 changes: 2 additions & 2 deletions packages/airnode-admin/test/e2e/cli.feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ describe('CLI', () => {
it('derives airnode xpub', () => {
const airnodeMnemonic = airnodeWallet.mnemonic.phrase;

// Derive the xpub programatically
// Derive the xpub programmatically
const airnodeXpub = admin.deriveAirnodeXpub(airnodeMnemonic);

// Derive the xpub using CLI
Expand Down Expand Up @@ -172,7 +172,7 @@ describe('CLI', () => {
['--sponsor-address', sponsorAddress]
);

// Derive the wallet programatically
// Derive the wallet programmatically
const sponsorWallet = await deriveSponsorWallet(airnodeWallet.mnemonic.phrase, sponsorAddress);

// Check that they generate the same wallet address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const main = async () => {
// NOTE: When doing this manually, you can use the 'derive-airnode-xpub' command from the admin CLI package
const airnodeXpub = deriveAirnodeXpub(airnodeWallet.mnemonic.phrase);

// Derive the sponsor wallet address programatically
// Derive the sponsor wallet address programmatically
// NOTE: When doing this manually, you can use the 'derive-sponsor-wallet-address' command from the admin CLI package
const sponsorWalletAddress = await deriveSponsorWalletAddress(airnodeXpub, airnodeWallet.address, sponsor.address);

Expand Down

0 comments on commit fb3cfa3

Please sign in to comment.