Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjl10 authored Dec 28, 2024
1 parent d348281 commit 21c37b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/17_migration_from_other_libs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ const contract = new ethers.Contract(address, abi, signer);
// for ambiguous functions (two functions with the same
// name), the signature must also be specified
message = await contract['getMessage(string)']('nice');
// and to call the overladed method without a parameter:
// and to call the overloaded method without a parameter:
message = await contract['getMessage()']();

// in v6
Expand All @@ -359,7 +359,7 @@ In web3.js:
```typescript
// in web3.js the overloaded method implementation is automatically picked based on the passed datatype
message = await contract.methods.getMessage('nice').call();
// To call the overladed method without a parameter:
// To call the overloaded method without a parameter:
message = await contract.methods.getMessage().call();
```

Expand Down

0 comments on commit 21c37b7

Please sign in to comment.