@@ -103,7 +103,7 @@ let updateMessageList = function(changes) {
103103
104104let initMessageList = function ( ) {
105105 let tempMessageList = [ ] ;
106- // Set array in covenient order
106+ // Set array in convenient order
107107 let operations = model . operationListSorted ( ) . sort ( ( left , right ) => ( left . nonce - right . nonce ) ) ;
108108 operations . forEach ( op => {
109109 // Apply operations
@@ -125,7 +125,7 @@ let initMessageList = function() {
125125 tempMessageList [ op . secondCID ] = op ;
126126 break ;
127127 case mom . operations . DELETE :
128- // deleta a message
128+ // delete a message
129129 delete tempMessageList [ op . firstCID ] ;
130130 break ;
131131 default :
@@ -162,14 +162,14 @@ let editMessage = async function(cid) {
162162 model . lastEditCID ( cid ) ;
163163 editMessageEditor . value ( new TextDecoder ( "utf-8" ) . decode ( block . data ) ) ;
164164 $ ( "#edit-message-tab" ) . tab ( "show" ) ;
165- setTimeout ( refreshEditor , 150 ) ; // a bit diry hack, but without it you need to click the editor to see the updated content
165+ setTimeout ( refreshEditor , 150 ) ; // a bit dirty hack, but without it you need to click the editor to see the updated content
166166 } ) ;
167167} ;
168168
169169let fetchMessage = async function ( cid ) {
170170 await ipfs . block . get ( cid ) . then ( function ( block ) {
171171 editMessageEditor . value ( new TextDecoder ( "utf-8" ) . decode ( block . data ) ) ;
172- setTimeout ( refreshEditor , 150 ) ; // a bit diry hack, but without it you need to click the editor to see the updated content
172+ setTimeout ( refreshEditor , 150 ) ; // a bit dirty hack, but without it you need to click the editor to see the updated content
173173 } ) ;
174174} ;
175175
@@ -244,7 +244,7 @@ function defaultViewModel() {
244244 publishToIPFS ( editMessageEditor . value ( ) , ipfs , successfulUpdate ) ;
245245 } ;
246246 self . comment = function ( message ) {
247- // TODO
247+ //TODO:
248248 log . debug ( message ) ;
249249 } ;
250250}
@@ -416,8 +416,8 @@ function Operation(operation, firstCID, secondCID, tx) {
416416 */
417417let sendAddMessage = function ( multihash , provider ) {
418418 log . debug ( multihash . toString ( "hex" ) , multihashes . toB58String ( multihash ) ) ;
419- let addTransacion = mom . createAddTransaction ( model . ethAddress ( ) , Buffer . from ( multihash ) ) ;
420- sendTransaction ( addTransacion , provider ) ;
419+ let addTransaction = mom . createAddTransaction ( model . ethAddress ( ) , Buffer . from ( multihash ) ) ;
420+ sendTransaction ( addTransaction , provider ) ;
421421} ;
422422
423423/**
@@ -437,8 +437,8 @@ let sendUpdateMessage = function(originalMultihash, updatedMultihash, provider)
437437 */
438438let sendDeleteMessage = function ( multihash , provider ) {
439439 log . debug ( multihash . toString ( "hex" ) , multihashes . toB58String ( multihash ) ) ;
440- let deleteTransacion = mom . createDeleteTransaction ( model . ethAddress ( ) , Buffer . from ( multihash ) ) ;
441- sendTransaction ( deleteTransacion , provider ) ;
440+ let deleteTransaction = mom . createDeleteTransaction ( model . ethAddress ( ) , Buffer . from ( multihash ) ) ;
441+ sendTransaction ( deleteTransaction , provider ) ;
442442} ;
443443
444444
@@ -587,40 +587,40 @@ window.addEventListener("load", async () => {
587587/*
588588Transaction Response
589589{
590- // Only available for mined transactions
591- blockHash: "0x7f20ef60e9f91896b7ebb0962a18b8defb5e9074e62e1b6cde992648fe78794b",
592- blockNumber: 3346463,
593- timestamp: 1489440489,
594-
595- // Exactly one of these will be present (send vs. deploy contract)
596- // They will always be a properly formatted checksum address
597- creates: null,
598- to: "0xc149Be1bcDFa69a94384b46A1F91350E5f81c1AB",
599-
600- // The transaction hash
601- hash: "0xf517872f3c466c2e1520e35ad943d833fdca5a6739cfea9e686c4c1b3ab1022e",
602-
603- // See above "Transaction Requests" for details
604- data: "0x",
605- from: "0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8",
606- gasLimit: utils.bigNumberify("90000"),
607- gasPrice: utils.bigNumberify("21488430592"),
608- nonce: 0,
609- value: utils.parseEther(1.0017071732629267),
610-
611- // The chain ID; 0 indicates replay-attack vulnerable
612- // (eg. 1 = Homestead mainnet, 3 = Ropsten testnet)
613- chainId: 1,
614-
615- // The signature of the transaction (TestRPC may fail to include these)
616- r: "0x5b13ef45ce3faf69d1f40f9d15b0070cc9e2c92f3df79ad46d5b3226d7f3d1e8",
617- s: "0x535236e497c59e3fba93b78e124305c7c9b20db0f8531b015066725e4bb31de6",
618- v: 37,
619-
620- // The raw transaction (TestRPC may be missing this)
621- raw: "0xf87083154262850500cf6e0083015f9094c149be1bcdfa69a94384b46a1f913" +
622- "50e5f81c1ab880de6c75de74c236c8025a05b13ef45ce3faf69d1f40f9d15b0" +
623- "070cc9e2c92f3df79ad46d5b3226d7f3d1e8a0535236e497c59e3fba93b78e1" +
624- "24305c7c9b20db0f8531b015066725e4bb31de6"
590+ // Only available for mined transactions
591+ blockHash: "0x7f20ef60e9f91896b7ebb0962a18b8defb5e9074e62e1b6cde992648fe78794b",
592+ blockNumber: 3346463,
593+ timestamp: 1489440489,
594+
595+ // Exactly one of these will be present (send vs. deploy contract)
596+ // They will always be a properly formatted checksum address
597+ creates: null,
598+ to: "0xc149Be1bcDFa69a94384b46A1F91350E5f81c1AB",
599+
600+ // The transaction hash
601+ hash: "0xf517872f3c466c2e1520e35ad943d833fdca5a6739cfea9e686c4c1b3ab1022e",
602+
603+ // See above "Transaction Requests" for details
604+ data: "0x",
605+ from: "0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8",
606+ gasLimit: utils.bigNumberify("90000"),
607+ gasPrice: utils.bigNumberify("21488430592"),
608+ nonce: 0,
609+ value: utils.parseEther(1.0017071732629267),
610+
611+ // The chain ID; 0 indicates replay-attack vulnerable
612+ // (eg. 1 = Homestead mainnet, 3 = Ropsten testnet)
613+ chainId: 1,
614+
615+ // The signature of the transaction (TestRPC may fail to include these)
616+ r: "0x5b13ef45ce3faf69d1f40f9d15b0070cc9e2c92f3df79ad46d5b3226d7f3d1e8",
617+ s: "0x535236e497c59e3fba93b78e124305c7c9b20db0f8531b015066725e4bb31de6",
618+ v: 37,
619+
620+ // The raw transaction (TestRPC may be missing this)
621+ raw: "0xf87083154262850500cf6e0083015f9094c149be1bcdfa69a94384b46a1f913" +
622+ "50e5f81c1ab880de6c75de74c236c8025a05b13ef45ce3faf69d1f40f9d15b0" +
623+ "070cc9e2c92f3df79ad46d5b3226d7f3d1e8a0535236e497c59e3fba93b78e1" +
624+ "24305c7c9b20db0f8531b015066725e4bb31de6"
625625}
626626*/
0 commit comments