Skip to content

Commit b1f5584

Browse files
author
nguyen-zung
committed
remove unused code
1 parent d44b445 commit b1f5584

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

wasmjs/src/index.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -236,33 +236,6 @@ export class WalletCoreWrapper {
236236
return out.dataHash
237237
}
238238

239-
buildEVMUnsignedTx(jsonStr: string): Uint8Array {
240-
const req = JSON.parse(jsonStr);
241-
242-
const opPayment = TW.Stellar.Proto.OperationPayment.create({
243-
destination: req.destination,
244-
amount: Long.fromString(String(req.amount)),
245-
})
246-
const memoText = this.TW.Stellar.Proto.MemoText.create({
247-
text: req.memoText
248-
})
249-
const input = {
250-
fee : req.fee,
251-
account: req.account,
252-
passphrase: 'Public Global Stellar Network ; September 2015',
253-
sequence: Long.fromString(String(req.sequence)),
254-
opPayment: opPayment,
255-
memoText: memoText
256-
};
257-
return this.TW.Stellar.Proto.SigningInput.encode(input).finish();
258-
}
259-
260-
buildEVMUnsignedMessage(txInput: Uint8Array): Uint8Array {
261-
const preimage = this.preImageHashes(this.CoinType.stellar, txInput);
262-
const out = this.TW.TxCompiler.Proto.PreSigningOutput.decode(preimage)
263-
return out.dataHash
264-
}
265-
266239
marshalInput(input: protobuf.Writer): Uint8Array {
267240
return input.finish();
268241
}

0 commit comments

Comments
 (0)