add currency field to tx

This commit is contained in:
Michele Balistreri 2020-02-12 15:37:48 +03:00
parent 4baad4d4a7
commit 9be4aca2d5
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,7 @@ function signPaymentRequest(getState, message, cb) {
let payment = [
{ name: "blockNumber", type: "uint256" },
{ name: "blockHash", type: "bytes32" },
{ name: "currency", type: "address" },
{ name: "amount", type: "uint256" },
{ name: "to", type: "address" }
];
@ -287,6 +288,7 @@ export const requestPayment = () => {
const message = {
blockNumber: block.number,
blockHash: block.hash,
currency: "0x0000000000000000000000000000000000000000",
to: state.owner,
amount: state.txAmount,
}