ether-pudding
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -36,2 +36,3 @@ var fs = require("fs"); | ||
classfile = classfile.replace(/\{\{BINARY\}\}/g, contract_data.binary || ""); | ||
classfile = classfile.replace(/\{\{UNLINKED_BINARY\}\}/g, contract_data.unlinked_binary || contract_data.binary || ""); | ||
classfile = classfile.replace(/\{\{ABI\}\}/g, JSON.stringify(contract_data.abi)); | ||
@@ -38,0 +39,0 @@ classfile = classfile.replace(/\{\{ADDRESS\}\}/g, contract_data.address || ""); |
10
index.js
@@ -125,12 +125,10 @@ var Promise = require("bluebird"); | ||
Contract.abi = Contract.prototype.abi = data.abi; | ||
Contract.prototype.binary = data.binary; | ||
Contract.binary = Contract.prototype.binary = data.binary; | ||
Contract.unlinked_binary = Contract.prototype.unlinked_binary = data.unlinked_binary || data.binary; | ||
Contract.prototype.class_defaults = data.defaults || {}; | ||
Contract.address = Contract.prototype.address = data.address; | ||
Contract.deployed_address = Contract.prototype.deployed_address = data.address; // deprecated | ||
Contract.prototype.generated_with = data.generated_with; | ||
Contract.generated_with = Contract.prototype.generated_with = data.generated_with; | ||
Contract.contract_name = Contract.prototype.contract_name = data.contract_name; | ||
Contract.prototype.contract_name = Contract.contract_name = data.contract_name; | ||
Contract.prototype.address = data.address; | ||
// Post-whisked loads just return the contract. | ||
@@ -137,0 +135,0 @@ Contract.load = function() { |
@@ -56,3 +56,3 @@ var fs = require("fs"); | ||
callback(null, names); | ||
callback(null, names, contracts); | ||
}); | ||
@@ -59,0 +59,0 @@ }, |
{ | ||
"name": "ether-pudding", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Pudding - a (more) delightful Ethereum contract abstraction", | ||
@@ -5,0 +5,0 @@ "author": "Tim Coulter", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
305093
6077