Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Oct 7, 2023
1 parent 9551ce9 commit 2e27d78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ Copy these files to the web server:

## TODO

* Wait for transaction receipt and get the returned contract address
* If the contract has deploy arguments, display a dialog to get them
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ async function deploy_contract(contract_address, sourceCode, encodedByteCode) {
if (info.chainid.version >= 4) {
// deploy the source code
const contract = herajs.Contract.fromSourceCode(sourceCode);
const payload = contract_plain.asPayload([]);
const payload = contract.asPayload([]);
} else {
// deploy the compiled byte code
const contract = herajs.Contract.fromCode(encodedByteCode);
const payload = uint8ToBase64(contract_build.asPayload([]));
const payload = uint8ToBase64(contract.asPayload([]));
}

var txdata = {
Expand Down
4 changes: 2 additions & 2 deletions bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ async function deploy_contract(contract_address, sourceCode, encodedByteCode) {
if (info.chainid.version >= 4) {
// deploy the source code
const contract = herajs.Contract.fromSourceCode(sourceCode);
const payload = contract_plain.asPayload([]);
const payload = contract.asPayload([]);
} else {
// deploy the compiled byte code
const contract = herajs.Contract.fromCode(encodedByteCode);
const payload = uint8ToBase64(contract_build.asPayload([]));
const payload = uint8ToBase64(contract.asPayload([]));
}

var txdata = {
Expand Down

0 comments on commit 2e27d78

Please sign in to comment.