on master help sign in
roller: replace hashTransaction with getUnsignedTx
commit0065b3a953bdef418a9046ba6d4acbbc7cd6d398 authoryosoyubik <yosoyubik@gmail.com> dateWed 10 Nov 2021, 10:46 (5 years ago) parenta5b8bca
1 file changed+4−4
src/lib/utils/roller.ts+4−4
src/lib/utils/roller.ts+4−4
@@ -69,7 +69,7 @@ export const spawn = async (
6969 ship: planet, // ship to spawn
7070 };
7171
72− const hash = await api.hashTransaction(nonce, from, 'spawn', data);
72+ const hash = await api.getUnsignedTx(nonce, from, 'spawn', data);
7373 const sSig = signTransactionHash(hash, _wallet.privateKey);
7474 return api.spawn(sSig, from, _wallet.address, data);
7575};
@@ -107,7 +107,7 @@ export const configureKeys = async (
107107 breach: breach || false,
108108 };
109109
110− const hash = await api.hashTransaction(nonce, from, 'configureKeys', data);
110+ const hash = await api.getUnsignedTx(nonce, from, 'configureKeys', data);
111111 const sig = signTransactionHash(hash, wallet.privateKey);
112112 return api.configureKeys(sig, from, wallet.address, data);
113113};
@@ -130,7 +130,7 @@ export const transferPointRequest = async (
130130 address,
131131 reset: reset || false,
132132 };
133− const hash = await api.hashTransaction(nonce, from, 'transferPoint', data);
133+ const hash = await api.getUnsignedTx(nonce, from, 'transferPoint', data);
134134 const sig = signTransactionHash(hash, _wallet.privateKey);
135135 return api.transferPoint(sig, from, _wallet.address, data);
136136};
@@ -182,7 +182,7 @@ export const registerProxyAddress = async (
182182 proxy,
183183 };
184184 const proxyData = { address };
185− const proxyHash = await api.hashTransaction(
185+ const proxyHash = await api.getUnsignedTx(
186186 nonce,
187187 from,
188188 proxyType(proxyAddressType),