Skip to content

Commit b86d0c6

Browse files
committed
update
1 parent 28e8da6 commit b86d0c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

eth/signer_awskms.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ func NewKmsSigner(region, keyAlias, awsKey, awsSec string, chainId *big.Int) (*K
4141
cfg := &aws.Config{
4242
Region: aws.String(region),
4343
}
44-
4544
if awsKey == "profile" {
4645
cfg.Credentials = credentials.NewSharedCredentials("", awsSec)
4746
} else if awsKey != "" && awsSec != "" {
4847
cfg.Credentials = credentials.NewStaticCredentials(awsKey, awsSec, "")
4948
} else {
50-
// default use role
49+
// default use aws role
5150
}
5251
sess, err := session.NewSession(cfg)
5352
if err != nil {
@@ -205,7 +204,6 @@ func CreateSigner(ksfile, passphrase string, chainid *big.Int) (Signer, common.A
205204
return nil, common.Address{}, fmt.Errorf("%s has wrong format, expected '<awsKey>:<awsSecret>'", passphrase)
206205
}
207206
}
208-
209207
kmsSigner, err := NewKmsSigner(kmskeyinfo[1], kmskeyinfo[2], awskeysec[0], awskeysec[1], chainid)
210208
if err != nil {
211209
return nil, common.Address{}, err

0 commit comments

Comments
 (0)