Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const signature1 = signature.substring(0, signature.length-2);
const v = signature.substring(signature.length-2, signature.length);
if (v === "00") {
signature = signature1+"1b";
} else {
signature = signature1+"1c";
}
const signatureType = 1;
// const scheme = arc.scheme(schemeState.id);
// const reputationFromTokenScheme = scheme.ReputationFromToken as ReputationFromTokenScheme;
const contract = arc.getContract(schemeState.address);
// send the transaction and get notifications
if (contract) {
// more information on this service is here: https://github.com/dOrgTech/TxPayerService
const txServiceUrl = getArcSettings().txSenderServiceUrl;
const data = {
to: schemeState.address,
methodAbi: {
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_beneficiary",
"type": "address",
},
{
"internalType": "uint256",
"name": "_signatureType",
"type": "uint256",
},
{
placeholder="Account address"
name="accountAddress"
className={touched.accountAddress && errors.accountAddress ? css.error : null}
/>
<b>⚠️ After redemption, reputation is not transferable</b>
<div>
<button disabled="{false}" type="submit">
<img src="/assets/images/Icon/redeem.svg"> Redeem
</button>
</div>
{ getArcSettings().txSenderServiceUrl ?
<div>
<div>Or try our new experimental feature:</div>
<button disabled="{false}" type="submit">
<img src="/assets/images/Icon/redeem.svg"> Redeem w/o paying gas
</button>
</div>
: null }
;
}}
/>