aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/beta/contract-test/contract.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/beta/contract-test/contract.js')
-rw-r--r--test/e2e/beta/contract-test/contract.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/e2e/beta/contract-test/contract.js b/test/e2e/beta/contract-test/contract.js
index 51891ea21..39e7238ae 100644
--- a/test/e2e/beta/contract-test/contract.js
+++ b/test/e2e/beta/contract-test/contract.js
@@ -38,18 +38,20 @@ const transferTokens = document.getElementById('transferTokens')
const approveTokens = document.getElementById('approveTokens')
deployButton.addEventListener('click', async function (event) {
+ document.getElementById('contractStatus').innerHTML = 'Deploying'
+
var piggybank = await piggybankContract.new(
{
from: web3.eth.accounts[0],
data: '0x608060405234801561001057600080fd5b5033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000808190555061023b806100686000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632e1a7d4d1461005c5780638da5cb5b1461009d578063d0e30db0146100f4575b600080fd5b34801561006857600080fd5b5061008760048036038101908080359060200190929190505050610112565b6040518082815260200191505060405180910390f35b3480156100a957600080fd5b506100b26101d0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100fc6101f6565b6040518082815260200191505060405180910390f35b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561017057600080fd5b8160008082825403925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156101c5573d6000803e3d6000fd5b506000549050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60003460008082825401925050819055506000549050905600a165627a7a72305820f237db3ec816a52589d82512117bc85bc08d3537683ffeff9059108caf3e5d400029',
gas: '4700000',
}, function (e, contract) {
- console.log(e, contract)
+ if (e) {
+ throw e
+ }
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash)
- console.log(`contract`, contract)
-
document.getElementById('contractStatus').innerHTML = 'Deployed'
depositButton.addEventListener('click', function (event) {
intainership to let a change for a new maintainer to catch up on thisBaptiste Daroussin2015-03-071-1/+1 * Convert USE_GNOME=desktopfileutils into USES=desktop-file-utilsBaptiste Daroussin2014-12-251-2/+2 * Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. TheTijl Coosemans2014-11-301-1/+1 * Update the default version of GCC in the Ports Collection from GCC 4.7.4Gerald Pfeifer2014-09-111-1/+1 * Bump PORTREVISION on more ports that depend on libgcrypt after the updateTijl Coosemans2014-08-061-1/+1 * - Replace security/gnutls with security/gnutls3 and update to 3.2.15Tijl Coosemans2014-07-231-1/+1 * - Unbroke remmina-plugin-nx build by define dependency on libssh directlyDima Panov2014-01-201-11/+0 * - Make QAT happy: plugins doesn't touch include/remmina, remove extra @dirrmtryDima Panov2014-01-161-1/+0 * - Add missed dependency on libvncserver [1]Dima Panov2014-01-161-1/+1 * - Avoid circular dependency on -i18n subport my move it to correct placeDima Panov2014-01-162-6/+6 * - Update FreeRDP to 1.1.0.2013070101 beta releaseDima Panov2014-01-153-34/+21 * Fix NO_STAGE attributionBaptiste Daroussin2013-09-231-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...Baptiste Daroussin2013-09-211-0/+1 * Add an explicit dependency on pkgconfBaptiste Daroussin2013-09-041-2/+1 * - Use master remmina tarball instead of fetch the same with another nameDima Panov2013-06-202-3/+3 * - Remove empty file, missed in previous big commitDima Panov2013-06-201-0/+0 * - Update net/remmina and its plugins to 1.0.0 releaseDima Panov2013-06-205-51/+82 * Fix typoBaptiste Daroussin2013-05-061-1/+1 * Convert from WITHOUT_NLS to PORT_OPTIONS:MNLSBaptiste Daroussin2013-05-062-16/+14 * - Adopt ports from avl@ to myself by his requestDima Panov2013-02-191-1/+1 * - fix version numbers going backwardsDirk Meyer2012-06-031-0/+1 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)Dmitry Marakasov2011-09-241-2/+1 * - Update to 0.9.2Alexander Logvinov2011-01-272-3/+3 * - Update to 0.9.1Alexander Logvinov2010-12-272-3/+3 * - Update to 0.9.0Alexander Logvinov2010-12-153-5/+4 * - Update to 0.8.4Alexander Logvinov2010-10-282-4/+4 * - Update to 0.8.3Alexander Logvinov2010-08-312-4/+4 * Add all plugins to RUN_DEPENDS.Alexander Logvinov2010-08-101-4/+4