-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4182 from BitGo/WIN-1446-add-chainid-as-operation…
…hash-opeth fix(sdk-coin-opeth): enable chain id changes for opeth
- Loading branch information
Showing
4 changed files
with
15 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
import { TransferBuilder as EthTransferBuilder } from '@bitgo/abstract-eth'; | ||
|
||
/** OPETH transfer builder */ | ||
export class TransferBuilder extends EthTransferBuilder { | ||
/** | ||
* Get the prefix used in generating an operation hash for sending tokens | ||
* | ||
* @returns the string prefix | ||
*/ | ||
protected getTokenOperationHashPrefix(): string { | ||
return 'OPETH-ERC20'; | ||
} | ||
|
||
/** | ||
* Get the prefix used in generating an operation hash for sending native coins | ||
* | ||
* @returns the string prefix | ||
*/ | ||
protected getNativeOperationHashPrefix(): string { | ||
return 'OPETH'; | ||
} | ||
} | ||
export { TransferBuilder } from '@bitgo/abstract-eth'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters