topics are deprecated
This commit is contained in:
@ -110,7 +110,7 @@ var addFunctionsToContract = function (contract, desc, address) {
|
||||
var addEventRelatedPropertiesToContract = function (contract, desc, address) {
|
||||
contract.address = address;
|
||||
|
||||
Object.defineProperty(contract, 'topics', {
|
||||
Object.defineProperty(contract, 'topic', {
|
||||
get: function() {
|
||||
return abi.filterEvents(desc).map(function (e) {
|
||||
return abi.methodSignature(e.name);
|
||||
@ -134,7 +134,7 @@ var addEventsToContract = function (contract, desc, address) {
|
||||
|
||||
impl.address = address;
|
||||
|
||||
Object.defineProperty(impl, 'topics', {
|
||||
Object.defineProperty(impl, 'topic', {
|
||||
get: function() {
|
||||
return [abi.methodSignature(e.name)];
|
||||
}
|
||||
|
Reference in New Issue
Block a user