Skip to main content

UpdateMasterMinter

ref: Wallet-StableCoin-UpdateMasterMinter

Update the master minter address (FiatToken/USDC compatibility). Requires the caller to be the current owner.

func UpdateMasterMinter(
ctx context.Context,
contractAddress,
newMasterMinter string,
gasLimit *uint64,
) (*types.Receipt, error)

func UpdateMasterMinterNoWait(
contractAddress,
newMasterMinter string,
gasLimit *uint64,
) (common.Hash, error)
func main() {
...
w, _ := wallet.New("<privateKey>")
w.Connect(alchemy.GetProvider())
...
receipt, err := w.StableCoin().UpdateMasterMinter(ctx, contractAddress, newMasterMinterAddress, nil)
}