This commit is contained in:
parent
6582ede1ce
commit
0a8be37b08
@ -728,8 +728,8 @@ export class BaseContract {
|
|||||||
// are ambiguous
|
// are ambiguous
|
||||||
{
|
{
|
||||||
const name = fragment.name;
|
const name = fragment.name;
|
||||||
if (!uniqueNames[name]) { uniqueNames[name] = [ ]; }
|
if (!uniqueNames[`%${ name }`]) { uniqueNames[`%${ name }`] = [ ]; }
|
||||||
uniqueNames[name].push(signature);
|
uniqueNames[`%${ name }`].push(signature);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((<Contract>this)[signature] == null) {
|
if ((<Contract>this)[signature] == null) {
|
||||||
@ -757,11 +757,13 @@ export class BaseContract {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Object.keys(uniqueNames).forEach((name) => {
|
Object.keys(uniqueNames).forEach((name) => {
|
||||||
|
|
||||||
// Ambiguous names to not get attached as bare names
|
// Ambiguous names to not get attached as bare names
|
||||||
const signatures = uniqueNames[name];
|
const signatures = uniqueNames[name];
|
||||||
if (signatures.length > 1) { return; }
|
if (signatures.length > 1) { return; }
|
||||||
|
|
||||||
|
// Strip off the leading "%" used for prototype protection
|
||||||
|
name = name.substring(1);
|
||||||
|
|
||||||
const signature = signatures[0];
|
const signature = signatures[0];
|
||||||
|
|
||||||
// If overwriting a member property that is null, swallow the error
|
// If overwriting a member property that is null, swallow the error
|
||||||
|
Loading…
Reference in New Issue
Block a user