Skip to content

Commit

Permalink
chore: Format files
Browse files Browse the repository at this point in the history
Signed-off-by: eum602 <eum602@gmail.com>
  • Loading branch information
eum602 committed Jun 26, 2024
1 parent 23b8d33 commit 2f6562b
Show file tree
Hide file tree
Showing 2 changed files with 257 additions and 189 deletions.
39 changes: 24 additions & 15 deletions lib/registryrecoverable.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
import DIDRegistry from './registry.js';
import DIDRegistry from "./registry.js";
import * as ethers from "ethers";
import DIDRegistryRecoverableContract from "./lac1/DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json"; // TODO improve
import DIDRegistryRecoverableContract from "./DIDRegistryRecoverable.json";

export default class DIDRegistryRecoverable extends DIDRegistry {
constructor(conf = {}) {
super(conf);
const provider = this.configureProvider(conf);
this.registry = new ethers.Contract(
conf.registry,
DIDRegistryRecoverableContract.abi,
provider
);
}

constructor( conf = {} ) {
super( conf );
const provider = this.configureProvider( conf );
this.registry = new ethers.Contract( conf.registry, DIDRegistryRecoverableContract.abi, provider );
}

recover( address, signature, controller ) {
return this.registry.recover( address, signature.v, signature.r, signature.s, controller, {
gasLimit: 10000000,
gasPrice: 0
} )
}

recover(address, signature, controller) {
return this.registry.recover(
address,
signature.v,
signature.r,
signature.s,
controller,
{
gasLimit: 10000000,
gasPrice: 0,
}
);
}
}
Loading

0 comments on commit 2f6562b

Please sign in to comment.