mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-18 19:25:48 +00:00
audit code
This commit is contained in:
@@ -12,7 +12,7 @@ export interface XChainModifyBridge extends BaseTransaction {
|
||||
|
||||
XChainBridge: XChainBridge
|
||||
|
||||
SignatureReward: Amount
|
||||
SignatureReward?: Amount
|
||||
|
||||
MinAccountCreateAmount?: Amount
|
||||
}
|
||||
@@ -29,10 +29,4 @@ export function validateXChainModifyBridge(tx: Record<string, unknown>): void {
|
||||
if (tx.XChainBridge == null) {
|
||||
throw new ValidationError('XChainModifyBridge: missing field XChainBridge')
|
||||
}
|
||||
|
||||
if (tx.SignatureReward == null) {
|
||||
throw new ValidationError(
|
||||
'XChainModifyBridge: missing field SignatureReward',
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user